这两道题用递归的解法都很简单,只是稍有不同。下面是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
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
关闭[访问目录]web服务器默认是打开该访问目录的权限的。要关闭显示目录文件权限
只需把配置项Directory中的Options后的Indexes去掉即可,或者在Indexes前加一个减号。Indexes选项表示访问该目录时,如果该目录下有index.html,则定向访问该文件,否则展示目录下的文...
分类:
其他好文 时间:
2014-05-09 12:33:48
阅读次数:
962
我想找到D盘里面所有 "*.pst文件,类似 windows 下的磁盘搜索功能,using
System.IO;Directory.GetFiles(@"d:\", "*.pst",
SearchOption.AllDirectories)测试环境为win7 提示说 某某目录没有访问权限。获得文件属...
分类:
其他好文 时间:
2014-05-05 11:37:06
阅读次数:
309
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
LDAP Guide? Back to documentation
indexIntroductionThis document details how to configure your Openfire
installation to use an external directory such...
分类:
其他好文 时间:
2014-05-04 20:53:28
阅读次数:
712
找到\xampp\apache\conf\httpd.conf配置文件Access
forbidden!You don’t have permission to access the requested directory. There is
either no index document or ...
分类:
其他好文 时间:
2014-05-04 11:12:23
阅读次数:
336