DescriptionFor a positive integer N , the digit-sum of N is defined as the sum of N itself and its digits. When M is the digitsum of N , we call N a g...
                            
                            
                                分类:
其他好文   时间:
2014-11-13 12:48:57   
                                阅读次数:
172
                             
                    
                        
                            
                            
                                这个题目纠结了一会儿,终于从二叉树转化到AVL了。题目如下:Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a ...
                            
                            
                                分类:
其他好文   时间:
2014-11-13 12:41:02   
                                阅读次数:
157
                             
                    
                        
                            
                            
                                Inmy previous post, I have already defined how you can inherit from an existing control and define your own reusable chunk. The reusable XAML code tha...
                            
                            
                         
                    
                        
                            
                            
                                If I have defined the struct as follows ://///////////////////////////////////////////////////////////////////////////////////////////////////////////...
                            
                            
                                分类:
其他好文   时间:
2014-11-11 07:02:43   
                                阅读次数:
202
                             
                    
                        
                            
                            
                                Given a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:The left subtree of a node contains only n...
                            
                            
                                分类:
其他好文   时间:
2014-11-09 16:41:17   
                                阅读次数:
122
                             
                    
                        
                            
                            
                                Given a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:The left subtree of a node contains only n...
                            
                            
                                分类:
其他好文   时间:
2014-11-09 06:19:31   
                                阅读次数:
173
                             
                    
                        
                            
                            
                                Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tree in which the depth...
                            
                            
                                分类:
其他好文   时间:
2014-11-09 00:55:08   
                                阅读次数:
250
                             
                    
                        
                            
                            
                                在现在的数据中心中,应用程序到存储设备的I/O路径都特别长,其中包括很多的层次或者说是stages,具体是怎样的可以点击这里,而且这些层次之间的接口还是不透明的(就像隧道),这使得要enforce一个end-to-end的policy (比如对于不同的tenant,需要不同的存储带宽,比如热数据和冷数据,比如存储服务的不同等级的客户)很难(相对于软件定义网络的控制逻辑而言,因为网络包的头部很好处理)。相对于SDN的OpenFlow,这里设计了IOFlow,在hypervisor阶段和storage serv...
                            
                            
                                分类:
其他好文   时间:
2014-11-07 14:50:03   
                                阅读次数:
279
                             
                    
                        
                            
                            
                                错误:org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'xx' is defined错误的一般解决办法:1.看xxbean是否已经注入,或者得到的bean名字错误.2.看spring的配置文...
                            
                            
                                分类:
编程语言   时间:
2014-11-07 11:07:58   
                                阅读次数:
235
                             
                    
                        
                            
                            
                                "No result defined for action ... and result input"错误一般发生在Struts2的拦截器拦截时遇到了问题时,Struts2会将跳转到result为input的视图上,但是在配置文件中并没有给这个Action配置input的result。可以建立一个内容为如下的Jsp文件,并在配置文件中配置result为input时跳转此文件,将会显示出具体的错误原...
                            
                            
                                分类:
其他好文   时间:
2014-11-06 22:08:59   
                                阅读次数:
222