DescriptionBessie has gone to the mall's jewelry store and spies a charm bracelet. Of course, she'd like to fill it with the best charms possible from...
分类:
其他好文 时间:
2015-04-30 21:38:11
阅读次数:
124
题目:Given a collection of numbers, return all possible permutations.For example,[1,2,3]have the following permutations:[1,2,3],[1,3,2],[2,1,3],[2,3,1],...
分类:
编程语言 时间:
2015-04-30 16:01:44
阅读次数:
138
点击打开杭电1159
Problem Description
A subsequence of a given sequence is the given sequence with some elements (possible none) left out. Given a sequence X = another sequence Z = is a subsequence of ...
分类:
其他好文 时间:
2015-04-30 14:20:31
阅读次数:
120
题目Given a set of distinct integers,S, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set must not ...
分类:
其他好文 时间:
2015-04-30 12:03:36
阅读次数:
81
Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. If you want a challenge, please do not see below and ...
分类:
其他好文 时间:
2015-04-30 07:35:03
阅读次数:
108
Given a string containing only digits, restore it by returning all possible valid IP address combinations.
For example:
Given "25525511135",
return ["255.255.11.135", "255.255.111.35"]. (Order ...
分类:
其他好文 时间:
2015-04-29 11:51:16
阅读次数:
147
Next Permutation
Implement next permutation, which rearranges numbers into the lexicographically next greater permutation of numbers.
If such arrangement is not possible, it must rearrange it ...
分类:
其他好文 时间:
2015-04-28 22:50:49
阅读次数:
222
A zero-indexed array A consisting of N integers is given. A triplet (P, Q, R) istriangularif it is possible to build a triangle with sides of lengths ...
分类:
其他好文 时间:
2015-04-28 20:52:42
阅读次数:
210
原文地址:http://users.skynet.be/pascalbotte/rcx-ws-doc/postxmlpython.htm# post xml soap messageimport sys, httplib# a "as lighter as possible" soap messag...
分类:
编程语言 时间:
2015-04-28 20:45:59
阅读次数:
728
problem:
Given a string s, partition s such that every substring of the partition is a palindrome.
Return all possible palindrome partitioning of s.
For example, given s = "aab",
Retur...
分类:
其他好文 时间:
2015-04-28 18:27:59
阅读次数:
104