标题:Valid Parentheses通过率:27.7%难度:简单Given a string containing just the characters'(',')','{','}','['and']', determine if the input string is valid.The b...
分类:
其他好文 时间:
2015-01-18 12:57:08
阅读次数:
130
标题:Min Stack通过率:15.2%难度:简单Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x o...
分类:
其他好文 时间:
2015-01-16 16:26:28
阅读次数:
156
标题:Plus One通过率:31.1%难度:简单Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the mos...
分类:
其他好文 时间:
2015-01-16 16:22:45
阅读次数:
156
标题:Compare Version Numbers通过率:14.8%难度:简单Compare two version numbersversion1andversion1.Ifversion1>version2return 1, ifversion1len2 ? len1:len2; 9 ...
分类:
其他好文 时间:
2015-01-14 12:40:35
阅读次数:
107
标题:Majority Element通过率:33.8%难度:简单Given an array of sizen, find the majority element. The majority element is the element that appears more than? n/2 ?...
分类:
其他好文 时间:
2015-01-14 12:34:55
阅读次数:
134
题目Merge Two Sorted Lists通过率33.2%难度EasyMerge two sorted linked lists and return it as a new list. The new list should be made by splicing together the ...
分类:
其他好文 时间:
2015-01-14 12:30:19
阅读次数:
159
题目Majority Element通过率33.8%难度EasyGiven an array of sizen, find the majority element. The majority element is the element that appears more than? n/2 ?t...
分类:
其他好文 时间:
2015-01-13 23:09:05
阅读次数:
136
这一段一直忙考试,一直没有刷题,今天上来刷三道题感觉生疏起来了。。罪过啊。刷到今天了。。还是没有写算法的感觉,还是写代码太少了。java的用法又忘记了很多。java上手后就要开始写python了,反正现在就是没有写代码的感觉。题目:Longest Common Prefix通过率:26.5%难度:简...
分类:
其他好文 时间:
2015-01-13 13:51:15
阅读次数:
193
题目Excel Sheet Column Title通过率17.2%难度EasyGiven a positive integer, return its corresponding column title as appear in an Excel sheet.For example: 1 ...
分类:
其他好文 时间:
2015-01-11 18:58:49
阅读次数:
197
题目Excel Sheet Column Number通过率40.5%难度EasyRelated to questionExcel Sheet Column TitleGiven a column title as appear in an Excel sheet, return its corre...
分类:
其他好文 时间:
2015-01-11 17:38:41
阅读次数:
184