Given an unsorted integer array, find the first missing positive integer.For example,Given[1,2,0]return3,and[3,4,-1,1]return2.Your algorithm should ru...
分类:
其他好文 时间:
2014-07-05 18:37:04
阅读次数:
188
院招终于开始了,然后期待与兴奋过后却是面临着笔试一次又一次的失败,然后开始留意到LeetCode。也想自己去体验一下诸多大牛通向无限coding路上都攻克过的一关。话不多说,贴出原题:Evaluate the value of an arithmetic expression inReverse P...
分类:
其他好文 时间:
2014-07-03 22:01:50
阅读次数:
202
Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".Clarification:What constitutes...
分类:
其他好文 时间:
2014-07-03 20:45:35
阅读次数:
201
In this problem you are to generate a triangular wave form according to a specified pair of Amplitude and Frequency.
Input and Output
The input begins with a single positive integer on a line by i...
分类:
其他好文 时间:
2014-07-03 17:15:14
阅读次数:
204
[LeetCode]Roman to Integer...
分类:
其他好文 时间:
2014-07-03 16:45:05
阅读次数:
178
[LeetCode]Reverse Integer...
分类:
其他好文 时间:
2014-07-03 16:36:33
阅读次数:
121
Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.int key[]={1000, 900, 500, 400, 100,90, 50, ...
分类:
其他好文 时间:
2014-07-03 12:06:47
阅读次数:
186
Reverse a linked list from position m to n. Do it in-place and in one-pass.
分类:
其他好文 时间:
2014-07-02 20:12:57
阅读次数:
182
#if defined(__CHAR_UNSIGNED__) || defined(__sgi) #define INT1 signed char /* integer, signed 1 Byte */#define INT1_MIN SCHAR_MIN...
分类:
其他好文 时间:
2014-07-02 19:19:04
阅读次数:
346
procedure TMainForm.openForm(Caption, FormClassName: string);var i: integer; sheet: TUniTabSheet;begin for i := 0 to page.PageCount - 1 do begin ...
分类:
其他好文 时间:
2014-07-02 18:48:09
阅读次数:
224