Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.For example:Given the below binary tree and sum ...
分类:
其他好文 时间:
2014-08-16 22:24:21
阅读次数:
212
Given a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 5 / \ \ 3 4 6The flattened t...
分类:
其他好文 时间:
2014-08-16 22:23:31
阅读次数:
269
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.Fo...
分类:
其他好文 时间:
2014-08-16 22:21:41
阅读次数:
235
Happy Reversal
Elfness is studying in an operation "NOT".
For a binary number A, if we do operation "NOT A", after that, all digits of A will be reversed. (e.g. A=1001101, after operation "NOT A...
分类:
移动开发 时间:
2014-08-16 21:10:31
阅读次数:
321
Beautiful Garden
There are n trees planted in lxhgww's garden. You can assume that these trees are planted along the X-axis, and the coordinate of ith tree
is xi.
But in rece...
分类:
其他好文 时间:
2014-08-16 21:10:21
阅读次数:
174
hdu 1392 Surround the Trees(凸包果题)...
分类:
其他好文 时间:
2014-08-16 16:28:30
阅读次数:
205
Binary Apple TreeTime Limit: 1000msMemory Limit: 16384KBThis problem will be judged onUral. Original ID:101864-bit integer IO format:%lld Java class n...
分类:
移动开发 时间:
2014-08-16 16:17:20
阅读次数:
256
Given a binary tree, flatten it to a linked list in-place....
分类:
其他好文 时间:
2014-08-16 12:39:00
阅读次数:
136
The gray code is a binary numeral system where two successive values differ in only one bit.
Given a non-negative integer n representing the total number of bits in the code, print the sequence of ...
分类:
其他好文 时间:
2014-08-16 12:37:20
阅读次数:
219
Convert Sorted List to Binary Search TreeGiven a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST....
分类:
其他好文 时间:
2014-08-16 12:19:20
阅读次数:
227