码迷,mamicode.com
首页 >  
搜索关键字:combinations    ( 963个结果
Leetcode题解(4):L216/Combination Sum III
L216: Combination Sum III   Find all possible combinations of k numbers that add up to a number n, given that only numbers from 1 to 9 can be used and each combination should be a unique set of number...
分类:其他好文   时间:2015-06-08 15:03:38    阅读次数:116
leetcode 22 -- Generate Parentheses
Generate Parentheses 题目: Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses. For example, given n = 3, a solution set is: “((()))”, “(()(...
分类:其他好文   时间:2015-06-06 23:33:17    阅读次数:120
LeetCode93: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.2...
分类:其他好文   时间:2015-06-06 11:49:30    阅读次数:86
Combinations
典型的dfs题,建议在其他dfs之前做public class Solution { public ArrayList> combine(int n, int k) { ArrayList> res = new ArrayList>(); if(nn) return...
分类:其他好文   时间:2015-06-06 06:49:13    阅读次数:106
Leetcode题解(2):L93/Restore IP Addresses
L93: 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.255.11.135”, “255.2...
分类:其他好文   时间:2015-06-05 22:43:06    阅读次数:154
40. Combination Sum II
Given a collection of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Each number ...
分类:其他好文   时间:2015-06-05 08:44:53    阅读次数:125
39. Combination Sum
Given a set of candidate numbers (C) and a target number (T), find all unique combinations inCwhere the candidate numbers sums toT.Thesamerepeated num...
分类:其他好文   时间:2015-06-05 07:38:18    阅读次数:137
[LeetCode][JavaScript]Letter Combinations of a Phone Number
Letter Combinations of a Phone NumberTotal Accepted:40709Total Submissions:157759My SubmissionsQuestionSolutionGiven a digit string, return all possib...
分类:编程语言   时间:2015-06-05 06:09:34    阅读次数:162
leetcode 17 -- Letter Combinations of a Phone Number
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 telepho...
分类:其他好文   时间:2015-06-03 11:56:06    阅读次数:91
Project Euler:Problem 29 Distinct powers
Consider all integer combinations of ab for 2 ≤ a ≤ 5 and 2 ≤ b ≤ 5: 22=4, 23=8, 24=16, 25=32 32=9, 33=27, 34=81, 35=243 42=16, 43=64, 44=256, 45=1024 52=25, 53=125, 54=625, 55=3125 If they a...
分类:其他好文   时间:2015-06-03 09:59:38    阅读次数:123
963条   上一页 1 ... 50 51 52 53 54 ... 97 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!