码迷,mamicode.com
首页 >  
搜索关键字:combinations    ( 963个结果
【Letter Combinations of a Phone Number】cpp
题目:Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telep...
分类:其他好文   时间:2015-05-22 14:55:29    阅读次数:135
【Combinations】cpp
题目:Given two integersnandk, return all possible combinations ofknumbers out of 1 ...n.For example,Ifn= 4 andk= 2, a solution is:[ [2,4], [3,4], [2,...
分类:其他好文   时间:2015-05-21 22:19:59    阅读次数:118
Java for LeetCode 093 Restore IP Addresses
Given a string containing only digits, restore it by returning all possible valid IP address combinations. For example:Given "25525511135",return ["25...
分类:编程语言   时间:2015-05-20 23:46:09    阅读次数:157
leetcode---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-05-20 16:22:27    阅读次数:92
leetcode_17题——Letter Combinations of a Phone Number(简单题)
这道题要求手机上,不同的数字所对应的字母的组合,就是一步步往上求就可以了,可能有点类似于动态规划的先求解子问题,再求出总的#include#include#include #includeusing namespace std;static string str[10]={"0","1","abc"...
分类:其他好文   时间:2015-05-19 20:51:44    阅读次数:167
Java for LeetCode 077 Combinations
Given two integers n and k, return all possible combinations of k numbers out of 1 ... n. For example,If n = 4 and k = 2, a solution is:[ [2,4], [3,.....
分类:编程语言   时间:2015-05-18 22:47:14    阅读次数:150
Leetcode#17Letter Combinations of a Phone Number
LetterCombinationsofaPhoneNumberTotalAccepted:39162TotalSubmissions:151116MySubmissionsQuestionSolutionGivenadigitstring,returnallpossiblelettercombinationsthatthenumbercouldrepresent.Amappingofdigittoletters(justlikeonthetelephonebuttons)isgivenbelow.Input..
分类:其他好文   时间:2015-05-18 20:55:38    阅读次数:115
LeetCode的medium题集合(C++实现)五
1 Combination Sum Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T. The same repeated number may be chosen from C...
分类:编程语言   时间:2015-05-16 12:00:54    阅读次数:139
[LeetCode]93.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.255.111.35”]. (Order does no...
分类:其他好文   时间:2015-05-16 00:14:24    阅读次数:145
【leetcode】Combination Sum
Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.The same repeate...
分类:其他好文   时间:2015-05-15 13:20:00    阅读次数:99
963条   上一页 1 ... 53 54 55 56 57 ... 97 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!