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
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
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, 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问题: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问题: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问题: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
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问题:Given two integersnandk, return all possible combinations ofknumbers out of 1 ...n.思路: dfs + 回溯我的代码:学习之处:常见的dfs+回溯模板 void dfs(){ ...
分类:
其他好文 时间:
2015-03-09 12:46:28
阅读次数:
150