Problem Description
There are several ancient Greek texts that contain descriptions of the fabled island Atlantis. Some of these texts even include maps of parts of the island. But unfortunately, the...
分类:
其他好文 时间:
2015-02-02 12:37:52
阅读次数:
137
【题目】
A peak element is an element that is greater than its neighbors.
Given an input array where num[i] ≠ num[i+1], find a peak element and return
its index.
The array may contain multipl...
分类:
其他好文 时间:
2015-02-01 16:07:45
阅读次数:
183
题目链接:http://poj.org/problem?id=1386Some of the secret doors contain a very interesting word puzzle. The team of archaeologists has to solve it to open...
分类:
其他好文 时间:
2015-02-01 13:22:07
阅读次数:
196
题目:
A peak element is an element that is greater than its neighbors.
Given an input array where num[i] ≠ num[i+1], find a peak element and return its index.
The array may contain multiple p...
分类:
其他好文 时间:
2015-01-31 12:43:38
阅读次数:
156
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-01-30 15:55:05
阅读次数:
196
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 l...
分类:
其他好文 时间:
2015-01-30 10:55:06
阅读次数:
293
map是C++的STL中存储key-value键值对数据结构的最基础的模板类,相对于multimap可以重复的key值,map的key是非重复的。 C++的reference这样说明的:std::mapis a sorted associative container that contain...
分类:
编程语言 时间:
2015-01-28 19:16:48
阅读次数:
144
问题描述:
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...
题目链接:Add Two Numbers
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 a...
分类:
其他好文 时间:
2015-01-27 23:36:05
阅读次数:
373
Time Limit:1000MSMemory Limit:10000KB64bit IO Format:%I64d & %I64uDescriptionStandard web browsers contain features to move backward and forward among...
分类:
其他好文 时间:
2015-01-27 21:46:04
阅读次数:
184