码迷,mamicode.com
首页 >  
搜索关键字:subsets ii    ( 6815个结果
微软职位内部推荐-SDE II
微软近期Open的职位:SDE IIOrganization Summary:Engineering, Community & Online (ECO) is looking for a great "Software Development Engineer" to join our team. ...
分类:其他好文   时间:2014-09-05 12:45:41    阅读次数:217
[LeetCode系列]翻转链表问题II
给定一个链表和两个整数m, n, 翻转链表第m个节点到第n个节点(从1开始计数).如, 给定链表:1->2->3->4->5->NULL, 以及 m = 2, n = 4.返回1->4->3->2->5->NULL.假定m和n满足约束条件:1 ≤m≤n≤ 链表长度.注意: 不能使用额外空间, 且只能...
分类:其他好文   时间:2014-09-04 22:15:20    阅读次数:243
Binary Tree Level Order Traversal II <leetcode>
Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).For e...
分类:其他好文   时间:2014-09-03 21:13:57    阅读次数:142
【LeetCode】Word Break II 解题报告
Given a string s and a dictionary of words dict, add spaces in s to construct a sentence where each word is a valid dictionary word. Return all such possible sentences. For example, given s = "...
分类:其他好文   时间:2014-09-02 17:52:35    阅读次数:191
UVA - 11542 Square (异或方程组)
Given n integers you cangenerate 2n-1 non-empty subsets from them. Determine for howmany of these subsets the product of all the integers in that is a perfectsquare. For example for the set {4,6,10,15...
分类:其他好文   时间:2014-09-02 15:50:45    阅读次数:247
Leetcode dfs Combination SumII
Combination Sum II  Total Accepted: 13710 Total Submissions: 55908My Submissions Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C wher...
分类:其他好文   时间:2014-09-01 14:03:23    阅读次数:188
★ Linked List Cycle II -- LeetCode
证明单链表有环路: 本文所用的算法 可以 形象的比喻就是在操场当中跑步,速度快的会把速度慢的扣圈  可以证明,p2追赶上p1的时候,p1一定还没有走完一遍环路,p2也不会跨越p1多圈才追上  我们可以从p2和p1的位置差距来证明,p2一定会赶上p1但是不会跳过p1的  因为p2每次走2步,而p1走一步,所以他们之间的差距是一步一步的缩小,4,3,2,1,0  到0的时候就重合...
分类:其他好文   时间:2014-09-01 10:48:33    阅读次数:151
LeetCode: Subsets
LeetCode: SubsetsGiven a set of distinct integers, S, return all possible subsets.Note:Elements in a subset must be in non-descending order.The soluti...
分类:其他好文   时间:2014-08-31 22:53:32    阅读次数:250
Leetcode dfs Path SumII
Path Sum II  Total Accepted: 18489 Total Submissions: 68323My Submissions Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum. For exampl...
分类:其他好文   时间:2014-08-31 21:28:11    阅读次数:180
Leetcode 细节实现题 Spiral Matrix II
Spiral Matrix II  Total Accepted: 12773 Total Submissions: 41526My Submissions Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order. For exampl...
分类:其他好文   时间:2014-08-31 17:17:11    阅读次数:128
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!