这两道题用递归的解法都很简单,只是稍有不同。下面是AC代码: 1 /** 2 * Given a
binary tree, find its minimum depth. 3 * the minimum depth is the number of
nodes along th...
分类:
其他好文 时间:
2014-05-10 08:47:32
阅读次数:
271
Cannotreadlifecyclemappingmetadataforartifactorg.apache.maven.plugins:maven-clean-plugin:maven-plugin:2.4.1:runtime
Cause: error in opening zip我的解决办法:...
分类:
其他好文 时间:
2014-05-10 01:50:53
阅读次数:
349
今天在家里的RHLE5.5上安装apache的时候,先用user1用户./configure命令配置,然后才用root用户make &&
make install,结果apache起来的时候就报如下错误: httpd: apr_sockaddr_info_get() failed
forbogon....
分类:
系统相关 时间:
2014-05-10 01:41:36
阅读次数:
574
Given two wordsword1andword2, find the minimum
number of steps required to convertword1toword2. (each operation is counted as 1
step.)You have the fol...
分类:
其他好文 时间:
2014-05-10 01:09:28
阅读次数:
325
Given two words word1 and word2, find the
minimum number of steps required to convert word1 to word2. (each operation is
counted as 1 step.)You have t...
分类:
其他好文 时间:
2014-05-09 19:09:35
阅读次数:
318
错误信息:One or more layers failed to draw:FDO
error: 0General function failure [PW_X]参数不足,期待是
1。原因:PW_X图层标注采用了表达式Label方式,数据源改成mdb后,shape.area及shape.lengt...
分类:
其他好文 时间:
2014-05-09 17:51:45
阅读次数:
541
http://acm.hdu.edu.cn/showproblem.php?pid=1598
1 #include 2 #include 3 #include 4 #define maxn 2000 5 using namespace std; 6
const int inf=1<<30; 7...
分类:
其他好文 时间:
2014-05-05 10:53:38
阅读次数:
344
http://acm.hdu.edu.cn/showproblem.php?pid=1599floyd找最小环。 1 #include 2 #include 3
#include 4 #define maxn 200 5 using namespace std; 6 const int inf...
分类:
其他好文 时间:
2014-05-05 10:52:15
阅读次数:
315
常见错误列表一、编译arm环境的时候:./configure -prefix
$HOME/Qtenv/arm -embedded arm-nomake docs -nomake demo -nomake
examples1、configure完成之后,make出现问题:/usr/bin/ld: ca...
分类:
其他好文 时间:
2014-05-05 09:32:27
阅读次数:
1967
原创文章,转载请注明出处!
最近小学习了一下Mac下的Apache,Mysql,php。这里记录一下,以备忘
1 php
1.1 php返回值的测试
在MAMP下测试成功,直接echo返回所数据
1.2 php调试环境
用komodo这个IDE可以断点调试一些东西,但机器上安装好之后,不能Debug,
Failed to config...
分类:
其他好文 时间:
2014-05-04 18:27:30
阅读次数:
304