Given two binary trees, write a function to 
check if they are equal or not.Two binary trees are considered equal if they are 
structurally identical an...
                            
                            
                                分类:
其他好文   时间:
2014-06-04 18:37:18   
                                阅读次数:
277
                             
                    
                        
                            
                            
                                1.onItemLongClick和onItemClick事件截取当须要同一时候获得一个listview的条目长按事件(onItemLongClick)和点击事件(onItemClick)时,仅仅须要在onItemLongClick事件触发函数中,return 
true就可以。2.自己定义Check...
                            
                            
                                分类:
移动开发   时间:
2014-06-03 06:27:33   
                                阅读次数:
325
                             
                    
                        
                            
                            
                                从3月底开始申请,整理J1的材料,一直到现在VISA的status变成了issued,中间被check了20多天,终于快要可以去silicon 
valley了。废话不多说,J1签证很easy,不要有任何担心。直接上J1办理流程:1. 联系学校,拿到DS2019表、financial support 
...
                            
                            
                                分类:
其他好文   时间:
2014-05-31 18:41:23   
                                阅读次数:
279
                             
                    
                        
                            
                            
                                Given a binary tree, check whether it is a 
mirror of itself (ie, symmetric around its center).For example, this binary tree 
is symmetric: 1 / \ ...
                            
                            
                                分类:
其他好文   时间:
2014-05-30 16:13:38   
                                阅读次数:
334
                             
                    
                        
                            
                            
                                安装时遇到了2个问题,特此记录下。问题1:Publickeyfor*.rpmisnotinstalled解决方法:在repo文件中加上"gpgcheck=0",默认没有这一项,看来系统默认是要check的,这个还是头一次知道。问题2:./configure: 
error: the HTTP rewr...
                            
                            
                                分类:
其他好文   时间:
2014-05-29 18:06:50   
                                阅读次数:
225
                             
                    
                        
                            
                            
                                Original link: How to check if Directory 
already Exists in MFC(VC++)?MSDN Links:CreateDirectory functionGetFileAttributes 
functionGetLastError functio...
                            
                            
                                分类:
其他好文   时间:
2014-05-29 17:49:25   
                                阅读次数:
371
                             
                    
                        
                            
                            
                                在虚拟机syfdemo的applmgr角色下执行appstart.sh脚本时依次执行以下过程:------------------------------------------------脚本 
用途adopmnctl.sh start, stop and check the status of ....
                            
                            
                                分类:
其他好文   时间:
2014-05-29 03:54:32   
                                阅读次数:
221
                             
                    
                        
                            
                            
                                目标:1. 使用ZoomManager来执行图形的缩放2. 
对图形进行对齐(Alignment)操作3. 图形修改后进行dirty 
check(提示保存文档)图形缩放:提供缩放能力的方法就是设置根图形的RootEditPart为ScalableRootEditPart。一般在Editor的confi...
                            
                            
                                分类:
其他好文   时间:
2014-05-27 17:20:25   
                                阅读次数:
482
                             
                    
                        
                            
                            
                                寻找图中最小连通的路径,图如下:
算法步骤:
1. Sort all the edges in non-decreasing order of their weight.
2. Pick the smallest edge. Check if it forms a cycle with the spanning tree 
formed so far. If cycle is n...
                            
                            
                                分类:
其他好文   时间:
2014-05-25 07:35:59   
                                阅读次数:
301
                             
                    
                        
                            
                            
                                比如对于一个Server/Client程序,Client会每隔一定时间(比如TIME_OUT_CLIENT)会向Server发送“CheckConnect”信息,Server收到这个信息会调用回调函数__recv_check_connect()这个是否可以再__recv_check_connect(...
                            
                            
                                分类:
其他好文   时间:
2014-05-24 11:54:21   
                                阅读次数:
194