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="ADOBECODEBA...
Given a collection of integers that might
contain duplicates,S, return all possible subsets.Note: Elements in a subset
must be in non-descending o...
分类:
其他好文 时间:
2014-06-04 18:37:55
阅读次数:
322
Given a linked list and a valuex, partition it
such that all nodes less thanxcome before nodes greater than or equal tox.You
should preserve the origi...
分类:
其他好文 时间:
2014-06-03 14:12:24
阅读次数:
306
Given a string containing only digits, restore
it by returning all possible valid IP address combinations.For
example:Given"25525511135",return["255.2...
分类:
其他好文 时间:
2014-06-03 14:06:24
阅读次数:
271
代码// Deadlock_Debug.cpp :
定义控制台应用程序的入口点。//#include "stdafx.h"#include "windows.h"#include // All the
thread must get all of critial_section// Classic ...
分类:
数据库 时间:
2014-06-03 12:08:01
阅读次数:
354
All in AllTime Limit: 1000MSMemory Limit:
30000KTotal Submissions: 27295Accepted: 11162DescriptionYou have devised a new
encryption technique which en...
分类:
其他好文 时间:
2014-06-03 12:03:57
阅读次数:
233
DescriptionGeorge took sticks of the same
length and cut them randomly until all parts became at most 50 units long. Now
he wants to return sticks to ...
分类:
其他好文 时间:
2014-05-30 23:00:32
阅读次数:
395
Given a stringsand a dictionary of wordsdict,
add spaces insto construct a sentence where each word is a valid dictionary
word.Return all such possibl...
分类:
其他好文 时间:
2014-05-30 16:28:34
阅读次数:
199
Given a strings, partitionssuch that every
substring of the partition is a palindrome.Return all possible palindrome
partitioning ofs.For example, giv...
分类:
其他好文 时间:
2014-05-30 16:04:06
阅读次数:
237
Given a binary tree and a sum, determine if the
tree has a root-to-leaf path such that adding up all the values along the path
equals the given sum.Fo...
分类:
其他好文 时间:
2014-05-30 15:18:35
阅读次数:
246