![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Recursion
文章平均质量分 67
boegkpmlkvebevwa
这个作者很懒,什么都没留下…
展开
-
[LeetCode] Generate Parentheses
Total Accepted: 10863 Total Submissions: 35390Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, given n = 3, a solution se原创 2014-04-30 18:10:03 · 361 阅读 · 0 评论 -
[LeetCode] Permutations II
Total Accepted: 8649 Total Submissions: 35072原创 2014-04-28 17:28:24 · 352 阅读 · 0 评论 -
[LeetCode] Combination Sum
Total Accepted: 9767 Total Submissions: 37455Given 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 same repeat原创 2014-04-28 17:58:18 · 411 阅读 · 0 评论 -
[LeetCode] Palindrome Partitioning
Total Accepted: 9269 Total Submissions: 36157Given a string s, partition s such that every substring of the partition is a palindrome.Return all possible palindrome partitioning of s. Fo原创 2014-04-23 11:04:29 · 522 阅读 · 0 评论 -
[LeetCode] Path Sum
Total Accepted: 11233Total Submissions: 37402原创 2014-04-21 17:25:41 · 416 阅读 · 0 评论 -
[LeetCode] Convert Sorted List to Binary Search Tree
Total Accepted: 9476 Total Submissions: 35578原创 2014-04-21 11:08:02 · 782 阅读 · 0 评论 -
[LeetCode] Balanced Binary Tree
Total Accepted: 13112 Total Submissions: 41069Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tree in which t原创 2014-05-05 18:06:21 · 439 阅读 · 0 评论 -
[LeetCode] N-Queens II
Total Accepted: 6667 Total Submissions: 21387Follow up for N-Queens problem.Now, instead outputting board configurations, return the total number of distinct solutions.原创 2014-05-04 18:08:27 · 1149 阅读 · 0 评论 -
[LeetCode] N-Queens
Total Accepted: 7379 Total Submissions: 29099原创 2014-05-04 17:54:20 · 678 阅读 · 0 评论 -
[LeetCode] Letter Combinations of a Phone Number
Total Accepted: 8862 Total Submissions: 34390原创 2014-05-02 01:13:14 · 719 阅读 · 0 评论 -
[LeetCode] Combination Sum II
Total Accepted: 7633 Total Submissions: 31949Given a collection of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.原创 2014-04-30 17:57:43 · 493 阅读 · 0 评论 -
[LeetCode] Subsets
Total Accepted: 10972 Total Submissions: 40240原创 2014-04-19 21:27:59 · 1023 阅读 · 0 评论