码迷,mamicode.com
首页 >  
搜索关键字:possible    ( 2665个结果
Restore IP Addresses
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
【Leetcode长征系列】Letter Combinations of a Phone Number
原题: 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
projecteuler---->problem=31----Coin sums 无限背包计算可能存在的次数
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
Scramble String
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
Subsets II
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
Restore IP Addresses
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之最长公共子序列
题目: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
Subclasses
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
Word Break II
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
UVA - 10892 LCM Cardinality (枚举因子)
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!