![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
backtracking
文章平均质量分 68
小榕流光
这个作者很懒,什么都没留下…
展开
-
[leetcode] 17. Letter Combinations of a Phone Number 解题报告
题目链接:https://leetcode.com/problems/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 l原创 2015-12-21 10:14:52 · 727 阅读 · 0 评论 -
[leetcode] 44. Wildcard Matching 解题报告
题目链接: https://leetcode.com/problems/wildcard-matching/Implement wildcard pattern matching with support for '?' and '*'.'?' Matches any single character.'*' Matches any sequence of characters原创 2016-04-02 15:22:52 · 1075 阅读 · 0 评论 -
[leetcode] 39. Combination Sum 解题报告
题目链接:https://leetcode.com/problems/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原创 2015-12-21 08:41:51 · 577 阅读 · 0 评论 -
[leetcode] 77. Combinations 解题报告
题目链接:https://leetcode.com/problems/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:[原创 2015-12-20 15:31:10 · 592 阅读 · 0 评论 -
[leetcode] 254. Factor Combinations 解题报告
题目链接:https://leetcode.com/problems/factor-combinations/Numbers can be regarded as product of its factors. For example,8 = 2 x 2 x 2; = 2 x 4.Write a function that takes an integer n and原创 2016-03-18 12:05:53 · 4114 阅读 · 0 评论 -
[leetcode] 216. Combination Sum III 解题报告
题目链接:https://leetcode.com/problems/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 combinati原创 2015-12-30 06:57:22 · 827 阅读 · 0 评论 -
[leetcode] 37. Sudoku Solver 解题报告
题目链接:https://leetcode.com/problems/sudoku-solver/Write a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character '.'.You may assume that th原创 2015-12-21 16:22:03 · 553 阅读 · 0 评论 -
[leetcode] 52. N-Queens II 解题报告
题目链接:https://leetcode.com/problems/n-queens-ii/Follow up for N-Queens problem.Now, instead outputting board configurations, return the total number of distinct solutions.思路:和N-Queens原创 2015-12-21 14:38:26 · 826 阅读 · 0 评论 -
[leetcdoe] 51. N-Queens 解题报告.
题目链接:https://leetcode.com/problems/n-queens/The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other.Given an integer n, retu原创 2015-12-21 12:12:44 · 567 阅读 · 0 评论 -
[leetcode] 89. Gray Code 解题报告
题目链接:https://leetcode.com/problems/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原创 2015-12-07 15:10:35 · 868 阅读 · 0 评论 -
[leetcode] 40. Combination Sum II 解题报告
题目链接:https://leetcode.com/problems/combination-sum-ii/Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to原创 2015-12-21 09:05:45 · 684 阅读 · 0 评论 -
[leetcode] 22. Generate Parentheses 解题报告
题目链接:https://leetcode.com/problems/generate-parentheses/Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, given n = 3, a sol原创 2015-12-21 06:17:05 · 496 阅读 · 0 评论 -
[leetcode] 10. Regular Expression Matching 解题报告
题目链接: https://leetcode.com/problems/regular-expression-matching/Implement regular expression matching with support for '.' and '*'.'.' Matches any single character.'*' Matches zero or more of原创 2016-05-18 17:07:49 · 924 阅读 · 0 评论