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
Problem DescriptionCalculateA + B.InputEach line will contain two integersAandB. Process to end of file.OutputFor each case, outputA + Bin one line.Sa...
分类:
编程语言 时间:
2015-02-06 20:24:04
阅读次数:
204
Given an input string, reverse the string word by word. A word is defined as a sequence of non-space characters.The input string does not contain lead...
分类:
其他好文 时间:
2015-02-06 16:36:03
阅读次数:
104
Description描述CIA has decided to create a special telephone directory for its agents. The first 2 pages of the directory contain the name of the direct...
分类:
其他好文 时间:
2015-02-05 21:52:23
阅读次数:
211
Attention:--------à写给自己及小白看吹牛逼+瞎扯淡:小的Linux小白,在冲往老黑的过程中会遇到麻烦那是必然。想必N多老黑在小白起步时,也都会有抱起服务器/PC狂砸的冲动。在下昨夜就有这种想法。装尼玛一破B系统,从19点开始到凌晨2点还TM启动不了,真是有种砸了眼前的一切..
分类:
其他好文 时间:
2015-02-05 07:08:04
阅读次数:
541
Attention:--------à写给自己及小白看吹牛逼+瞎扯淡:小的Linux小白,在冲往老黑的过程中会遇到麻烦那是必然。想必N多老黑在小白起步时,也都会有抱起服务器/PC狂砸的冲动。在下昨夜就有这种想法。装尼玛一破B系统,从19点开始到凌晨2点还TM启动不了,真是有种砸了眼前的一切..
分类:
其他好文 时间:
2015-02-05 07:05:26
阅读次数:
319
Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).
For example,
S = "ADOBECODEBANC"
T = "ABC"
Minimum window is "BANC"...
Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).
For example,
S = "ADOBECODEBANC"
T = "ABC"
Minimum window is "BAN...
题目:
Suppose a sorted array is rotated at some pivot unknown to you beforehand.
(i.e., 0 1 2 4 5 6 7 might become 4
5 6 7 0 1 2).
Find the minimum element.
The array may contain duplicate...
分类:
编程语言 时间:
2015-02-04 16:39:32
阅读次数:
150
Q:
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 ...
分类:
其他好文 时间:
2015-02-02 23:06:26
阅读次数:
153