Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:
其他好文 时间:
2014-08-17 16:55:02
阅读次数:
202
We have seen built-in functions that take a variable number of arguments. For example range can take one, two or three arguments.It is possible to wri...
分类:
其他好文 时间:
2014-08-17 16:52:32
阅读次数:
272
Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon...
分类:
其他好文 时间:
2014-08-17 16:44:42
阅读次数:
179
// 定义点击拨号按钮时的操作-(void)callAction{NSString*number=@"";//此处读入电话号码//NSString*num=[[NSStringalloc]initWithFormat:@"tel://%@",number];//number为号码字符串如果使用这个方...
分类:
移动开发 时间:
2014-08-17 15:29:22
阅读次数:
200
The string "PAYPALISHIRING" is written in a zigzag pattern on a given
number of rows like this: (you may want to display this pattern in a fixed font for better legibility)
P A H N
A P L S I ...
分类:
其他好文 时间:
2014-08-17 13:09:52
阅读次数:
168
Description
You and your friend are playing a game in which you and your friend take turns removing stones from piles. Initially there are
N piles with a1,
a2, a3,..., aN number of stones. On eac...
分类:
其他好文 时间:
2014-08-17 11:46:42
阅读次数:
172
今天在调试一个页面的时候遇到一个问题,在IE9下执行得非常好的脚本,在IE8里打开的时候弹出错误:expectedidentifier,stringornumber,依照经验,应该是定义对象的时候最后一个属性末尾跟了逗号,但检查一遍后没发现有这样的情况,后来细致看了一下报错的位置,发现有定义json...
分类:
Web程序 时间:
2014-08-16 23:41:51
阅读次数:
342
Happy Reversal
Elfness is studying in an operation "NOT".
For a binary number A, if we do operation "NOT A", after that, all digits of A will be reversed. (e.g. A=1001101, after operation "NOT A...
分类:
移动开发 时间:
2014-08-16 21:10:31
阅读次数:
321
题目链接题意:给一个n个数的序列a1, a2, ..., an ,这些数的范围是0~n-1, 可以把前面m个数移动到后面去,形成新序列:a1, a2, ..., an-1, an (where m = 0 - the initial seqence)a2, a3, ..., an, a1 (wher...
分类:
其他好文 时间:
2014-08-16 21:00:01
阅读次数:
188
打印环境变量:echo $PATH设置环境变量:export PATH=$PATH:/usr/local/git/bin应用:在git-scm下载git2.0.1版本,图形安装后,直接在终端敲giv --version提示-bash comman nof found. echo $PATH发现没有/...
分类:
其他好文 时间:
2014-08-16 19:47:00
阅读次数:
233