码迷,mamicode.com
首页 >  
搜索关键字:possible    ( 2665个结果
Palindrome Partitioning
Palindrome Partitioning问题:Given a strings, partitionssuch that every substring of the partition is a palindrome.Return all possible palindrome partiti...
分类:其他好文   时间:2015-03-14 13:41:00    阅读次数:108
[Leetcode] Subsets
Given a set of distinct integers,S, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set must not co...
分类:其他好文   时间:2015-03-13 18:18:46    阅读次数:208
Combinations
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-03-13 15:48:38    阅读次数:115
全排列算法的递归与非递归实现
全排列算法的递归与非递归实现全排列算法是常见的算法,用于求一个序列的全排列,本文使用C语言分别用递归与非递归两种方法实现,可以接受元素各不相同的输入序列。题目来自leetcode: Given a collection of numbers, return all possible permutations. For example, [1,2,3] have the followi...
分类:编程语言   时间:2015-03-11 19:47:45    阅读次数:146
The openssl extension is missing--composer install
安装过程中报错:The openssl extension is missing, which means that secure HTTPS transfers are impossible. If possible you should enable it or recompile php with --with-openssl 解决方法:找到path ph...
分类:其他好文   时间:2015-03-11 13:12:12    阅读次数:250
Subsets II
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-desc...
分类:其他好文   时间:2015-03-10 22:59:27    阅读次数:169
Restore IP Addresses
Restore IP Addresses问题:Given a string containing only digits, restore it by returning all possible valid IP address combinations.思路: dfs + 回溯模板我的代码1:....
分类:其他好文   时间:2015-03-10 22:59:02    阅读次数:228
Subsets
Subsets问题:Given a set of distinct integers,S, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set m...
分类:其他好文   时间:2015-03-10 21:01:26    阅读次数:137
[LeetCode] String to Integer (atoi) 字符串
Implementatoito convert a string to an integer.Hint:Carefully consider all possible input cases. If you want a challenge, please do not see below and ...
分类:其他好文   时间:2015-03-10 06:46:26    阅读次数:239
Combinations
Combinations问题:Given two integersnandk, return all possible combinations ofknumbers out of 1 ...n.思路: dfs + 回溯我的代码:学习之处:常见的dfs+回溯模板 void dfs(){ ...
分类:其他好文   时间:2015-03-09 12:46:28    阅读次数:150
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!