题目
Find the contiguous subarray within an array (containing at least one number) which has the largest sum.
For example, given the array [?2,1,?3,4,?1,2,1,?5,4],
the contiguous subarray [4,...
分类:
其他好文 时间:
2014-06-19 12:08:20
阅读次数:
270
DescriptionIn modern society, each person has his own friends. Since all the people are very busy, they communicate with each other only by phone. You...
分类:
其他好文 时间:
2014-06-15 20:44:45
阅读次数:
162
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum.
For example:
Given the below binary tree and sum
...
分类:
其他好文 时间:
2014-06-15 19:26:23
阅读次数:
207
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that
adding up all the values along the path equals the given sum.
For example:
Given the below bin...
分类:
其他好文 时间:
2014-06-15 09:34:35
阅读次数:
226
You are given an n x n 2D matrix representing an image.
Rotate the image by 90 degrees (clockwise).
Follow up:
Could you do this in-place?
思路:第一种思路是一层一层的进行旋转,比较直观,但是花费的时间要久一些;第二种思路则比较取巧,首先沿着...
分类:
其他好文 时间:
2014-06-15 08:46:26
阅读次数:
170
continuecontinue 只能用于while循环、do/while循环、for循环以及for/in循环中,其他地方都会引起错误。1 for(var i=0;i<5;i++){2 if(i == 3) continue;3 console.log(i); //0,1,2,...
分类:
编程语言 时间:
2014-06-15 06:43:13
阅读次数:
239
SQL Server has two basics kinds of indexes. They are clustered and nonclustered indexes. There are some fundamental differences to the two which are k...
分类:
其他好文 时间:
2014-06-15 06:30:52
阅读次数:
197
刚刚接触,还需在项目中,逐步深入的理解,站在巨人的肩膀上学习,成长还是比较快的;知识的学习都是通过对比,在gxpt中很多内容都是对比NET的知识学习,理解的也深刻、效果不错;抽象的能力的培养尤其重要,看着师哥们抽象的底层,处处体现着抽象带来的软件复用的高效,老师经常也在谈,抽象不要只说,更要我们要不断的运用到自己的实际项目中,TO DO,TO DO!!!...
分类:
编程语言 时间:
2014-06-14 07:33:12
阅读次数:
362
今天在209服务器上要远程登录另外一台54的服务器,结果用ssh连接提示如下错误:[root@NHL~]#sshroot@10.40.49.54
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@WARNING:REMOTEHOSTIDENTIFICATIONHASCHANGED!@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@..
分类:
其他好文 时间:
2014-06-13 21:02:04
阅读次数:
326