Given a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 5 / \ \ 3 4 6The flattened t...
分类:
其他好文 时间:
2015-11-09 22:38:44
阅读次数:
237
Description:The reflected binary code, also known as Gray code after Frank Gray, is a binary numeral system where two successive values differ in only...
分类:
其他好文 时间:
2015-11-09 18:59:24
阅读次数:
225
Invert a binary tree. 4 / \ 2 7 / \ / \1 3 6 9to 4 / \ 7 2 / \ / \9 6 3 1比较简单,二叉树里的题其实有点举一反三的意思,很多题会一道就差不多了。递归的反...
分类:
其他好文 时间:
2015-11-09 16:59:09
阅读次数:
237
Unique Binary Search Trees IIGivenn, generate all structurally uniqueBST's(binary search trees) that store values 1...n.For example,Givenn= 3, your pr...
分类:
编程语言 时间:
2015-11-08 23:45:01
阅读次数:
228
The reflected binary code, also known as Gray code after Frank Gray, is a binary numeral system where two successive values differ in only onebit (bi....
分类:
其他好文 时间:
2015-11-08 19:22:16
阅读次数:
185
If you are not coming from a programming background it might not yet be clear what is really a file? What is a binary file and what makes something a text file? 其实总归一句话:【Files that consis...
分类:
其他好文 时间:
2015-11-08 16:38:25
阅读次数:
185
QuestionGiven a binary search tree and a node in it, find the in-order successor of that node in the BST.Note: If the given node has no in-order succe...
分类:
其他好文 时间:
2015-11-08 14:26:04
阅读次数:
332
http://dev.mysql.com/doc/internals/en/binary-log.html 备选: http://dev.mysql.com/doc/refman/5.7/en/binary-log.html...
分类:
其他好文 时间:
2015-11-07 19:16:04
阅读次数:
162
Section I正确区分不同的查找算法count,find,binary_search,lower_bound,upper_bound,equal_range本文是对Effective STL第45条的一个总结,阐述了各种查找算法的异同以及使用他们的时机。首先可供查找的算法大致有count,fin...
分类:
其他好文 时间:
2015-11-07 17:27:20
阅读次数:
245
题目:Given a binary tree, return thepreordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[1,2,3]....
分类:
其他好文 时间:
2015-11-06 10:59:32
阅读次数:
185