题目:Given two integers n and k, return all possible combinations of k numbers out of 1 ... n.For example,If n = 4 and k = 2, a solution is:[ [2,4], ...
分类:
编程语言 时间:
2014-07-30 09:58:03
阅读次数:
218
题目:Given a binary tree, return the inorder traversal of its nodes' values.For example:Given binary tree {1,#,2,3}, 1 \ 2 / 3return [1,3...
分类:
编程语言 时间:
2014-07-30 09:54:33
阅读次数:
195
题目:Given a binary tree, return the preorder traversal of its nodes' values.For example:Given binary tree {1,#,2,3}, 1 \ 2 / 3return [1,...
分类:
编程语言 时间:
2014-07-30 09:49:43
阅读次数:
177
题目:Given a string s and a dictionary of words dict, add spaces in s to construct a sentence where each word is a valid dictionary word.Return all suc....
分类:
编程语言 时间:
2014-07-30 03:19:32
阅读次数:
341
标准c#include int main(int argc, char *argv[]){ long int x; while(scanf("%ld",&x)!=EOF) // while(scanf("%ld",&x)==1) { printf("%d\n",x*x); } return 0;}....
分类:
其他好文 时间:
2014-07-30 00:58:12
阅读次数:
255
1 #include 2 int main()3 {4 return 0; 5 }
分类:
其他好文 时间:
2014-07-30 00:56:02
阅读次数:
172
textField弹出键盘中的return按钮为灰色不可点击12 UITextField*textField=[[UITextFieldalloc]initWithFrame:CGRectMake(0,0,100,30)]3textField.returnKeyType=UIReturnKeySea...
分类:
其他好文 时间:
2014-07-30 00:54:52
阅读次数:
200
#include int main(){ return 0; }
分类:
其他好文 时间:
2014-07-30 00:48:32
阅读次数:
147
1 String.prototype.format = function(args){2 var _dict = typeof(args)=='object'?args:arguments;3 return this.replace(/\{([^{}]+)\}/g,function(s...
分类:
编程语言 时间:
2014-07-30 00:44:32
阅读次数:
301
Reverse Integer
java,python,C++三种代码练习
Reverse digits of an integer.
Example1: x = 123, return 321
Example2: x = -123, return -321
click to show s...
分类:
其他好文 时间:
2014-07-29 22:02:52
阅读次数:
333