码迷,mamicode.com
首页 >  
搜索关键字:problems    ( 6275个结果
Remove Linked List Elements
https://leetcode.com/problems/remove-linked-list-elements/Remove all elements from a linked list of integers that have valueval.ExampleGiven:1 --> 2 -...
分类:其他好文   时间:2015-04-26 22:26:23    阅读次数:173
Binary Tree Maximum Path Sum
https://leetcode.com/problems/binary-tree-maximum-path-sum/Given a binary tree, find the maximum path sum.The path may start and end at any node in th...
分类:其他好文   时间:2015-04-26 22:23:56    阅读次数:174
Construct Binary Tree from Inorder and Postorder Traversal
https://leetcode.com/problems/construct-binary-tree-from-inorder-and-postorder-traversal/Given inorder and postorder traversal of a tree, construct th...
分类:其他好文   时间:2015-04-26 15:00:15    阅读次数:116
sdut-2159 Ivan comes again!(set+线段树)
Ivan comes again! Time Limit: 1000ms   Memory limit: 65536K  有疑问?点这里^_^ 题目描述 The Fairy Ivan gave Saya three problems to solve (Problem F). After Saya finished the first problem...
分类:其他好文   时间:2015-04-26 09:20:26    阅读次数:126
Construct Binary Tree from Preorder and Inorder Traversal
https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/Given preorder and inorder traversal of a tree, construct the ...
分类:其他好文   时间:2015-04-25 22:33:00    阅读次数:223
Recover Binary Search Tree
https://leetcode.com/problems/recover-binary-search-tree/Two elements of a binary search tree (BST) are swapped by mistake.Recover the tree without ch...
分类:其他好文   时间:2015-04-25 18:07:43    阅读次数:136
UVALive - 3942(trie
DescriptionNeal is very curious about combinatorial problems, and now here comes a problem about words. Knowing that Ray has a photographic memory and...
分类:其他好文   时间:2015-04-25 10:34:42    阅读次数:124
关于u32中查找和定位最后到bit Number of 1 Bits
题目来源:https://leetcode.com/problems/number-of-1-bits/刷leetcode的时候发现了这个题目。作为常年跑底层嵌入式的我,对于这种题目兴趣还是很浓厚的class Solution {public: int hammingWeight(uint32...
分类:其他好文   时间:2015-04-25 06:47:17    阅读次数:347
Number of Islands
https://leetcode.com/problems/number-of-islands/Given a 2d grid map of'1's (land) and'0's (water), count the number of islands. An island is surrounde...
分类:其他好文   时间:2015-04-24 12:14:49    阅读次数:143
Happy Number
题目链接:https://leetcode.com/problems/happy-number/这道题看上去很简单,如果用hashtable的话,不少童鞋应该都能做出来。只要想明白一件事儿,循环结束的条件:要么当前的数字为1,要么当前的数字曾经出现过。(至于为什么一定会出现循环,额,数学家们已有讨论...
分类:移动开发   时间:2015-04-24 00:58:20    阅读次数:181
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!