题目描述:Container With Most WaterGivennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn s...
分类:
其他好文 时间:
2015-02-07 15:53:27
阅读次数:
141
题目描述:Palindrome NumberDetermine whether an integer is a palindrome. Do this without extra space.Some hints:Could negative integers be palindromes? (ie...
分类:
其他好文 时间:
2015-02-07 14:22:19
阅读次数:
175
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a link...
分类:
其他好文 时间:
2015-02-07 09:08:17
阅读次数:
165
正则表达式的先行断言和后行断言一共有4种形式:(?=pattern) 零宽正向先行断言(zero-width positive lookahead assertion)(?!pattern) 零宽负向先行断言(zero-width negative lookahead assertion)(?<=p...
分类:
其他好文 时间:
2015-02-06 23:06:51
阅读次数:
360
Givennnon-negative integersa1,a2, ...,an, where each represents a point at coordinate (i,ai).nvertical lines are drawn such that the two endpoints of ...
分类:
其他好文 时间:
2015-02-05 21:41:14
阅读次数:
160
1005. Spell It Right (20)时间限制400 ms内存限制65536 kB代码长度限制16000 B判题程序Standard作者CHEN, YueGiven a non-negative integer N, your task is to compute the sum of ...
分类:
其他好文 时间:
2015-02-05 17:55:18
阅读次数:
178
Given an array with positive and negative integers. Re-range it to interleaving with positive and negative integers.
Note
You are not necessary to keep the original order or positive integers or...
分类:
其他好文 时间:
2015-02-05 13:42:13
阅读次数:
148
Given an integer with no more than 9 digits, you are supposed to read it in the traditional Chinese way. Output "Fu" first if it is negative. For exam...
分类:
其他好文 时间:
2015-02-05 13:15:38
阅读次数:
295
Plus One
Total Accepted: 34829 Total
Submissions: 111864My Submissions
Question
Solution
Given a non-negative number represented as an array of digits, plus one to the number.
Th...
分类:
其他好文 时间:
2015-02-05 11:26:14
阅读次数:
186
题目描述: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 ...
分类:
其他好文 时间:
2015-02-05 10:56:24
阅读次数:
173