NSUBSTR - Substringsno tagsYou are given a string S which consists of 250000 lowercase latin letters at most. We define F(x) as the maximal number of ...
分类:
其他好文 时间:
2015-08-14 21:05:34
阅读次数:
228
Team QueueQueuesandPriority Queuesare data structures which are known to most computer scientists. TheTeam Queue, however, is not so well known, thoug...
分类:
其他好文 时间:
2015-08-14 18:55:30
阅读次数:
130
这是一道涉及计算步数的问题;
这对于这样的问题,我通常的做法是在DFS函数当中加入一个变量,step;
这样,在进行深搜函数递归的时候,我们就便于调控和记录( 最小的 )步数了;
题目:
这有一个迷宫,有0~8行和0~8列:
1,1,1,1,1,1,1,1,1
1,0,0,1,0,0,1,0,1
1,0,0,1,1,0...
分类:
其他好文 时间:
2015-08-14 15:44:32
阅读次数:
92
Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit is at...
分类:
其他好文 时间:
2015-08-14 15:16:01
阅读次数:
93
Best Time to Buy and Sell Stock
Say you have an array for which the ith element is the price of a given stock on day i.
If you were only permitted to complete at most one transaction (ie, buy ...
分类:
其他好文 时间:
2015-08-13 18:07:39
阅读次数:
182
题目:最大的盛水容器Given n non-negative integers a1, a2, …, an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Fi...
分类:
其他好文 时间:
2015-08-13 18:00:02
阅读次数:
103
Traceback (most recent call last): File "F:\adt-bundle-windows-x86_64-20140702\eclipse\workspace1\XueChe\src\xueche2\0\xueche.py", line 19, in dr...
分类:
编程语言 时间:
2015-08-13 17:12:32
阅读次数:
1926
In the past 7.5 years I have supervised over a dozen programming interns atRonimoand have seen hundreds of portfolios of students and graduates. In al...
分类:
其他好文 时间:
2015-08-13 11:32:07
阅读次数:
80
?Time Changes EverythingPhilip NelsononE oF THE THingS I’ve been most entertained by as the years have gone by is observing what things have lasted and what haven’t. So many patterns, frameworks, parad...
分类:
其他好文 时间:
2015-08-13 10:06:19
阅读次数:
99
function: function本身是一个object,它可以被赋值给任何变量immediate invoked function expression(IIFE): function(){}()method vs function: 一个method是一个对象的一个函数属性(a method ...
分类:
编程语言 时间:
2015-08-13 06:26:10
阅读次数:
113