这也能算hard题……Given a string, find the length of the longest substring T that contains at most 2 distinct characters.For example, Given s =“eceba”,T is "...
分类:
其他好文 时间:
2015-12-25 06:25:56
阅读次数:
165
1 var maxArea = function(height) { 2 var max = 0, 3 l = 0, 4 r = height.length - 1; 5 6 while (l max ? capacity : max; 9 ...
分类:
其他好文 时间:
2015-12-24 20:54:39
阅读次数:
181
坚持学习英语,OMG口语非常长不错,坚持每天整理.学英语坚持最重要,学英语坚持最重要,学英语坚持最重要说三遍! My favorite type of movie is a Rom Com.Rom Com stands for Rormantic Comedy .Like Legally Blon....
分类:
其他好文 时间:
2015-12-23 08:11:30
阅读次数:
186
问题:给定 n 个元素的数组 a1,a2..an,他们对应坐标中的 n 条线,第 i 条线的两端分别为坐标 (i, 0) 和 (i, ai)。求两根线,这两个线和 x 轴形成的容器能装最多的水。 这是一道直方图相关的题目,同样是直方图的题目还有:Trapping Rain Water 和 Larg...
分类:
其他好文 时间:
2015-12-23 01:50:01
阅读次数:
205
1http://git-scm.com/book/en/v2/Git-Basics-TaggingGit Basics2.6 Git Basics - TaggingTaggingLike most VCSs, Git has the ability to tag specific points i...
分类:
其他好文 时间:
2015-12-22 21:02:14
阅读次数:
219
http://acm.hdu.edu.cn/showproblem.php?pid=5187Problem DescriptionAs one of the most powerful brushes, zhx is required to give his juniorsnproblems.zhx...
分类:
其他好文 时间:
2015-12-22 16:06:19
阅读次数:
302
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-12-21 15:41:48
阅读次数:
121
今天安装python的mysql API的时候遇到问题[root@db MySQL-python-1.2.5]# python setup.py buildsh: mysql_config: command not foundTraceback (most recent call last): F....
分类:
编程语言 时间:
2015-12-17 19:02:25
阅读次数:
155
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-12-17 12:54:15
阅读次数:
146
[revert]revert: Restore pristine working copy file (undo most local edits).usage: revert PATH... Note: this subcommand does not require network access...
分类:
其他好文 时间:
2015-12-17 10:49:47
阅读次数:
136