这两道题用递归的解法都很简单,只是稍有不同。下面是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
How to Find Happiness Without Buying
It如何不花钱就能找到乐子Our materialistic society has led us to believe that happiness
cannot be obtained without having mon...
分类:
其他好文 时间:
2014-05-09 11:57:25
阅读次数:
363
master: linuxslave: win7
64位系统在配置好系统后,采用jnlp的方式启动slave节点,报错如下:com.sun.deploy.net.FailedDownloadException:
Unable to load resource: http://127.0.0.1:80...
分类:
Web程序 时间:
2014-05-08 21:43:22
阅读次数:
2133
Given a triangle, find the minimum path sum from
top to bottom. Each step you may move to adjacent numbers on the row below.For
example, given the fol...
分类:
其他好文 时间:
2014-05-08 21:08:25
阅读次数:
407
以下是一些ABC Radio
的pls链接:vlc打开网络串流,输入pls链接,确定即可。Direct LinksIf you are unable to use our default
players, you can use these links.Windows Audio StreamsAB...
分类:
其他好文 时间:
2014-05-08 21:01:30
阅读次数:
446
由于find具有强大的功能,所以它的选项也很多,其中大部分选项都值得我们花时间来了解一下。即使系统中含有网络文件系统( N F S
),find命令在该文件系统中同样有效,只你具有相应的权限。在运行一个非常消耗资源的find命令时,很多人都倾向于把它放在后台执行,因为遍历一个大的文件系统可能会花费很...
分类:
系统相关 时间:
2014-05-07 10:24:54
阅读次数:
380
一、find命令详细find命令 --
之查找指定时间内修改过的文件比如我们要查找linux下指定时间内做过改动的文件,我们可以用find命令,其实find命令的功能十分强大,下面我们通过几个简单的例子来学习下find命令的简单用法:find
/opt -iname "*" -atime 1 -ty...
分类:
其他好文 时间:
2014-05-07 10:11:08
阅读次数:
330
常见错误列表一、编译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