【题目】
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 of the two subtrees of every node never differ by more than 1.
【题意】
判断二叉树是否是平衡二叉树
【思路】
平衡二...
分类:
其他好文 时间:
2014-06-20 11:02:54
阅读次数:
173
Tutorial The Kithara ?RealTime Suite? (KRTS) is
a real-time extension for Windows, which currently contains more than 20
different functional modules....
分类:
其他好文 时间:
2014-06-06 10:38:26
阅读次数:
748
google得到的方法:1。http://geekswithblogs.net/ranganh/archive/2008/04/01/file-upload-in-updatepanel-asp.net-ajax.aspxThere
is a better way of doing it with ...
分类:
其他好文 时间:
2014-06-06 08:14:26
阅读次数:
279
Become a Better Developer: 3 Ways Writing Will
Expand Your Mind, Improve Your Code and Grow Your CareerSeptember 10, 2013Oliver
WhiteNo commentsinShar...
分类:
其他好文 时间:
2014-06-05 18:30:54
阅读次数:
447
在VirtualBox中,有时候打开虚拟机,会出现Waiting for 60 seconds
more for network configuration这种情况,从而使得开机变得很慢。通过以下操作,可以让虚拟机开机很快,并且开机后不用再执行sudo
dhclient eth0这种操作获取IP了。...
分类:
其他好文 时间:
2014-06-05 14:07:57
阅读次数:
300
Initialization comes after Class loading.
分类:
其他好文 时间:
2014-06-02 07:58:13
阅读次数:
156
在整理Java LockSupport.park()的东东,看到了个"Spurious wakeup",重新梳理下。
首先来个《UNIX环境高级编程》里的例子:
#include
struct msg {
struct msg *m_next;
/* ... more stuff here ... */
};
struct msg *workq;
pthread_cond_t qread...
分类:
其他好文 时间:
2014-06-02 04:45:19
阅读次数:
267
今天建库的时候忽然报错ORA-00600:internalerrorcode,arguments:[keltnfy-ldmInit],[46],[1],[],[],[],[],[]梗是让我无语,没办法只好检查参数配置,按照文档一步步检查,最后检查了下profile文件的配置
[root@servU_01db_1]#more/home/oracle/.bash_profile
#.bash_profile
#..
分类:
其他好文 时间:
2014-06-02 04:12:51
阅读次数:
320
LINUX11GRACASM磁盘组在线增加磁盘扩容
1.操作系统版本OEL6.1
[root@cqltjcpt1~]#more/etc/redhat-release
RedHatEnterpriseLinuxServerrelease6.1(Santiago)
2.数据库版本oracle11grac
SQL>select*fromv$version;
BANNER
--------------------------------------------..
分类:
系统相关 时间:
2014-06-02 03:51:08
阅读次数:
428
-bash:warning:setlocale:LC_CTYPE:cannotchangelocale(EN_US.UTF-8)
把linux系统从中文设置英文字符集后发生以下报错
首先本系统字符集为中文UTF-8
[root@localhost~]#more/etc/sysconfig/i18n
LANG="zh_CN.UTF-8"
修改为英文UTF-8
[root@localhost~]#vim/etc/sysconfig/i..
分类:
其他好文 时间:
2014-06-02 03:24:48
阅读次数:
331