https://oj.leetcode.com/problems/path-sum//** * Definition for binary tree * public class TreeNode { * int val; * TreeNode left; * TreeNod...
                            
                            
                                分类:
编程语言   时间:
2014-07-01 13:09:20   
                                阅读次数:
198
                             
                    
                        
                            
                            
                                题目:Given a binary tree, return thelevel ordertraversal of its nodes' values. (ie, from left to right, level by level).For example:Given binary tree{3,...
                            
                            
                                分类:
其他好文   时间:
2014-07-01 12:44:09   
                                阅读次数:
199
                             
                    
                        
                            
                            
                                Gray Code: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 ...
                            
                            
                                分类:
其他好文   时间:
2014-07-01 12:42:16   
                                阅读次数:
192
                             
                    
                        
                            
                            
                                题目:Given a binary tree, return thebottom-up level ordertraversal of its nodes' values. (ie, from left to right, level by level from leaf to root).For ...
                            
                            
                                分类:
其他好文   时间:
2014-07-01 12:26:07   
                                阅读次数:
215
                             
                    
                        
                            
                            
                                https://oj.leetcode.com/problems/validate-binary-search-tree/1.中序遍历是否有序/** * Definition for binary tree * public class TreeNode { * int val; * ...
                            
                            
                                分类:
编程语言   时间:
2014-07-01 12:20:06   
                                阅读次数:
173
                             
                    
                        
                            
                            
                                呵呵,这个翻译还是很直白的嘛,大家意会就好。第一次看到这个高大上题目还是有点小害怕的,还好题没有做过深的文章。只要按照规则转化成十进制就好了,而且题目本身也说了最大不超过一个int的范围(2^31-1 ==2147483647)。直接位运算就好了。Skew BinaryWhen a number i...
                            
                            
                                分类:
其他好文   时间:
2014-07-01 10:13:16   
                                阅读次数:
219
                             
                    
                        
                            
                            
                                一开始是因为curl无法访问https网上说,要重新编译安装curl
我就下载..
./configure
make
make install
结果出现
curl:
 (2) Failed Initialization
好吧,我整个人都跪了.
满世界找原因...
找到这个 
It means that the curl binary is picking ...
                            
                            
                                分类:
其他好文   时间:
2014-07-01 08:07:03   
                                阅读次数:
545
                             
                    
                        
                            
                            
                                题目
Given a binary tree, flatten it to a linked list in-place.
For example,
Given
         1
        /        2   5
      / \        3   4   6
The flattened tree should look lik...
                            
                            
                                分类:
其他好文   时间:
2014-07-01 08:03:10   
                                阅读次数:
127
                             
                    
                        
                            
                            
                                题目
Given a binary tree, return the preorder traversal of its nodes' values.
For example:
Given binary tree {1,#,2,3},
   1
         2
    /
   3
return [1,2,3].
Note: Recu...
                            
                            
                                分类:
其他好文   时间:
2014-07-01 07:06:56   
                                阅读次数:
177
                             
                    
                        
                            
                            
                                题目
Given a binary tree, return the postorder traversal of its nodes' values.
For example:
Given binary tree {1,#,2,3},
   1
         2
    /
   3
return [3,2,1].
Note: Rec...
                            
                            
                                分类:
其他好文   时间:
2014-07-01 07:06:11   
                                阅读次数:
214