这两道题用递归的解法都很简单,只是稍有不同。下面是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
原生js的event对象有三个键盘事件的值:1) charCode: 被点击键的Unicode值2)
keyCode: 被点击键的ASCII十进制值3) which:
字母数字键的charCode或者keyCode,具体可以自己试试Mootools的event被封装后,统一成为code和key:ev...
分类:
Web程序 时间:
2014-05-10 02:10:12
阅读次数:
442
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
14. which three are valid declaraction of a float?
ADFA. float foo=-1; B. float foo=1.0; C. float foo=42e1; D. float foo=2.02f; E.
float foo=3.03d; F....
分类:
其他好文 时间:
2014-05-09 16:37:31
阅读次数:
323
Intressant, dessa tillg?ngliga i spend l?tt
m?nga olika stilar Remix, till dem som folk uppmuntrar g?vor. Vidare fann att vi
bilden butik eller eller ...
分类:
数据库 时间:
2014-05-09 12:32:24
阅读次数:
617
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
There are no interfaces on which a capture can be
done解决方法:Open a terminal by pressingCtrl+Alt+Tand type the following
commands:sudo dpkg-reconfigure ...
分类:
其他好文 时间:
2014-05-08 22:18:45
阅读次数:
397
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
常见错误列表一、编译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