Restore IP Addresses
Total Accepted: 12696 Total
Submissions: 61955My Submissions
Given a string containing only digits, restore it by returning all possible valid IP address combinations...
分类:
其他好文 时间:
2014-08-22 21:15:49
阅读次数:
277
原题:
Given a digit string, return all possible letter combinations that the number could represent.
A mapping of digit to letters (just like on the telephone buttons) is given below.
Input...
分类:
其他好文 时间:
2014-08-21 19:30:24
阅读次数:
225
Problem 31
In England the currency is made up of pound, £, and pence, p, and there are eight coins in general circulation:
1p, 2p, 5p, 10p, 20p, 50p, £1 (100p) and £2 (200p).
It is possible to ...
分类:
其他好文 时间:
2014-08-21 11:30:04
阅读次数:
169
Given a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.Below is one possible representatio...
分类:
其他好文 时间:
2014-08-21 00:01:23
阅读次数:
293
Given a collection of integers that might contain duplicates, S, return all possible subsets.Note:Elements in a subset must be in non-descending order...
分类:
其他好文 时间:
2014-08-20 19:37:12
阅读次数:
175
Given a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given "25525511135",return ["255...
分类:
其他好文 时间:
2014-08-19 20:40:45
阅读次数:
203
题目:poj 1458 Common Subsequence
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...
分类:
其他好文 时间:
2014-08-19 19:04:25
阅读次数:
182
Given a collection of numbers, return all possible subclasses. 1 public class Solution { 2 public List> permute(int[] num) { 3 ArrayList...
分类:
其他好文 时间:
2014-08-19 09:22:03
阅读次数:
198
Given a string s and a dictionary of words dict, add spaces in s to construct a sentence where each word is a valid dictionary word.
Return all such possible sentences....
分类:
其他好文 时间:
2014-08-18 20:36:22
阅读次数:
231
A pair of numbers has a unique LCM but a single number can be the
LCM of more than one possible pairs. Forexample 12 is the
LCM of (1, 12), (2, 12),
(3,4) etc. For a given positive integer N, the ...
分类:
其他好文 时间:
2014-08-18 16:25:24
阅读次数:
240