码迷,mamicode.com
首页 >  
搜索关键字:possible    ( 2665个结果
Permutations I & II
IGiven 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],[3...
分类:其他好文   时间:2015-06-02 08:04:35    阅读次数:90
Java for LeetCode 131 Palindrome Partitioning
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,...
分类:编程语言   时间:2015-06-01 20:08:32    阅读次数:138
HackerRank - "Team Formation"
Pretty classic greedy problem to work on. Here is how to approach it:1. "the smallest team is as large as possible." actually means, team members shou...
分类:其他好文   时间:2015-06-01 13:09:26    阅读次数:132
Combination Sum III —— LeetCode
Find all possible combinations ofknumbers that add up to a numbern, given that only numbers from 1 to 9 can be used and each combination should be a u...
分类:其他好文   时间:2015-05-29 17:25:09    阅读次数:112
[LeetCode] 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 ...
分类:其他好文   时间:2015-05-29 11:49:26    阅读次数:82
Combinations ——LeetCode
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,3],...
分类:其他好文   时间:2015-05-29 11:32:26    阅读次数:79
leetcode | 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 th...
分类:其他好文   时间:2015-05-29 10:08:13    阅读次数:115
【LeetCode】90.Subsets II
Subsets IIGiven a collection of integers that might contain duplicates,nums, return all possible subsets.Note:Elements in a subset must be in non-desc...
分类:其他好文   时间:2015-05-28 22:52:47    阅读次数:148
LeetCode的medium题集合(C++实现)十五
1 Subsets Given a set of distinct integers, nums, return all possible subsets. Note: Elements in a subset must be in non-descending order. The solution set must not contain duplicate subsets. For...
分类:编程语言   时间:2015-05-28 12:42:36    阅读次数:125
Grading
题目描述:     Grading hundreds of thousands of Graduate Entrance Exams is a hard work. It is even harder to design a process to make the results as fair as possible. One way is to assign each exam prob...
分类:其他好文   时间:2015-05-28 09:37:33    阅读次数:126
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!