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
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
error:*.x86_64.rpm:HeaderV4RSA/SHA1signature:BAD,keyID*故障原因:我用smbclient//ip/shareget的时候安装失败后来上传到ftp服务器通过ftp服务器binget之后rpm安装成功原因分析:通过smbclient下载后包损坏通过ftp下载的话包就完整了
分类:
其他好文 时间:
2014-05-25 04:59:29
阅读次数:
296
当大家想只给centos系统更新补丁的时候,往往会把其他一些无用的组件给更新下来,现在就给大家说下怎么只更新补丁而又不更新其他组件.1.安装yum插件即可:yum
install yum-security2.检查安全更新yum --security check-update3.只安装安全更新yum ...
分类:
其他好文 时间:
2014-05-24 13:01:02
阅读次数:
531
比如对于一个Server/Client程序,Client会每隔一定时间(比如TIME_OUT_CLIENT)会向Server发送“CheckConnect”信息,Server收到这个信息会调用回调函数__recv_check_connect()这个是否可以再__recv_check_connect(...
分类:
其他好文 时间:
2014-05-24 11:54:21
阅读次数:
194