这道题因为不仔细的缘故两次过,与Maximum Depth of Binary 
Tree问题类似,区别在于这个问题中,如果一个节点左子树为空、右子树有值,则该节点的深度应取决于右子树,而不能直接取min{左,右} 1 /** 2 * 
Definition for binary tree 3 * .....
                            
                            
                                分类:
其他好文   时间:
2014-05-10 01:40:13   
                                阅读次数:
293
                             
                    
                        
                            
                            
                                1 /** 2 * Definition for binary tree 3 * public 
class TreeNode { 4 * int val; 5 * TreeNode left; 6 * TreeNode right; 7 * 
TreeNo...
                            
                            
                                分类:
其他好文   时间:
2014-05-09 12:16:45   
                                阅读次数:
232
                             
                    
                        
                            
                            
                                介绍:AIDL 即 Android Interface Definition 
Language使用:1.新建.aidl文件1 //AIDL 文件所在的包2 package com.houny.demo_aidl.aidl;3 4 
//接口名必须和AIDL文件名一致5 interface ISay{6...
                            
                            
                                分类:
移动开发   时间:
2014-05-08 21:32:42   
                                阅读次数:
511
                             
                    
                        
                            
                            
                                题目链接区间合并,贪心,需要注意边界情况,LeetCode的数据还是比较好的,这样才能写出健壮的程序。附上代码: 
1 /** 2 * Definition for an interval. 3 * struct Interval { 4 * int start; 5 * 
in...
                            
                            
                                分类:
其他好文   时间:
2014-05-06 00:16:44   
                                阅读次数:
400
                             
                    
                        
                            
                            
                                # Definition for a binary tree node# class 
TreeNode:# def __init__(self, x):# self.val = x# self.left = None# self.right 
...
                            
                            
                                分类:
其他好文   时间:
2014-05-05 22:56:23   
                                阅读次数:
419
                             
                    
                        
                            
                            
                                1 /** 2 * Definition for binary tree 3 * public 
class TreeNode { 4 * int val; 5 * TreeNode left; 6 * TreeNode right; 7 * 
TreeNo...
                            
                            
                                分类:
其他好文   时间:
2014-05-05 22:44:13   
                                阅读次数:
328
                             
                    
                        
                            
                            
                                1 /** 2 * Definition for binary tree 3 * public 
class TreeNode { 4 * int val; 5 * TreeNode left; 6 * TreeNode right; 7 * 
TreeNo...
                            
                            
                                分类:
其他好文   时间:
2014-05-05 22:43:14   
                                阅读次数:
313
                             
                    
                        
                            
                            
                                DDL :Data Definition Language (DDL) statements 
are used to define the database structure or schema. Some examples:CREATE - to 
create objects in the da...
                            
                            
                                分类:
数据库   时间:
2014-05-03 22:21:22   
                                阅读次数:
410
                             
                    
                        
                            
                            
                                org.springframework.dao.InvalidDataAccessApiUsageException: Write operations are not allowed in read-only mode (FlushMode.NEVER) - turn your Session into FlushMode.AUTO or remove 'readOnly' marker from transaction definition...
                            
                            
                                分类:
数据库   时间:
2014-05-01 18:16:35   
                                阅读次数:
377
                             
                    
                        
                            
                            
                                What is an object? (Page 238)In C++, an object 
is just a variable, and the purest definition is "a region of storage" (this is 
a more specific way ...
                            
                            
                                分类:
其他好文   时间:
2014-05-01 04:38:01   
                                阅读次数:
327