Maximum Depth of Binary TreeGiven a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root ...
分类:
其他好文 时间:
2014-07-31 23:19:10
阅读次数:
259
Path SumGiven a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the give...
分类:
其他好文 时间:
2014-07-31 23:18:10
阅读次数:
227
Path Sum IIGiven a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.For example:Given the below binary tr...
分类:
其他好文 时间:
2014-07-31 23:17:10
阅读次数:
175
http://poj.org/problem?id=1410IntersectionTime Limit:1000MSMemory Limit:10000KTotal Submissions:11329Accepted:2978DescriptionYou are to write a progra...
分类:
其他好文 时间:
2014-07-31 23:17:00
阅读次数:
249
Same TreeGiven two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally ide...
分类:
其他好文 时间:
2014-07-31 23:15:00
阅读次数:
201
1安装与配置jdk: 1.6或以上下载MAVEN3.x版本,解压后放在随便一目录,然后在系统环境变量配置MAVEN路径。运行cmd-->输入 mvn -version 会出现maven版本信息。此处有机会出错,如显示JAVA_HOME问题,请配置JAVA_HOME即jdk路径,然后在path中比ma...
分类:
其他好文 时间:
2014-07-31 23:14:40
阅读次数:
231
vi/home/oracle/.bashrcumask022ORACLE_BASE=/usr/lib/oracleORACLE_HOME=$ORACLE_BASE/11.2/client64PATH=$ORACLE_HOME/bin:$PATHLD_LIBRARY_PATH=$ORACLE_HOME/libTNS_ADMIN=/usr/lib/oracle/11.2/client/network/adminExportLD_LIBRARY_PATHORACLE_BASEORACLE_HOMEPATHTNS_A..
分类:
数据库 时间:
2014-07-31 21:21:48
阅读次数:
289
问题一:Response.Write 后连接Response.Redirect ,则Response.Write无法显示,直接跳转入Response.Redirect 的页面。解决方案:Response.Write("");假设,script内容中含有变量,那么解决方法是:string a=当前的记...
分类:
其他好文 时间:
2014-07-31 20:40:17
阅读次数:
159
0; $i--){ $flag = 0; //每一趟进行相邻两个数进行比较 for($j = 0; $j $arr[$j+1]){ $temp = $arr[$j]; $arr[$j] = $arr[$j+1]; $arr[$j+1] =$temp; $flag = 1...
分类:
Web程序 时间:
2014-07-31 20:38:57
阅读次数:
197
在终端里输入下面命令即可让它们显示出来。 defaults write com.apple.finder AppleShowAllFiles -bool true 如果想恢复隐藏,可以用这个命令: defaults write com.apple.finder AppleShowAllFil...
分类:
移动开发 时间:
2014-07-31 20:35:27
阅读次数:
211