
leetcode整理 Backtracking
StudyCoder
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
89. Gray Code
题目:格雷码The gray code is a binary numeral system where two successive values differ in only one bit.Given a non-negative integer n representing the total number of bits in the code, print the转载 2016-07-16 22:47:20 · 261 阅读 · 0 评论 -
47. Permutations II
题目:全排列2Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2] have the following unique permutations:[ [1,1,2], [1转载 2016-07-16 23:19:38 · 421 阅读 · 0 评论 -
77. 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,4], [2,3], [1,2], [1,3],转载 2016-07-17 10:20:39 · 287 阅读 · 0 评论 -
46. Permutations
题目:全排列Given a collection of distinct 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], [转载 2016-07-17 11:25:41 · 275 阅读 · 0 评论 -
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, given s = "aab",Return[转载 2016-07-17 15:59:21 · 353 阅读 · 0 评论 -
211. Add and Search Word - Data structure design
题目:添加和搜索单词-数据结构设计Design a data structure that supports the following two operations:void addWord(word)bool search(word)search(word) can search a literal word or a regular expression stri转载 2016-07-17 16:52:25 · 577 阅读 · 0 评论