![](https://img-blog.csdnimg.cn/20201014180756780.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Recursion
文章平均质量分 81
duffywan
这个作者很懒,什么都没留下…
展开
-
Construct Binary Tree from Preorder and Inorder Traversal
Fair Construct Binary Tree from Preorder and Inorder TraversalShow Result My Submissions35%AcceptedGiven preorder and inorder traversal of a tree, construct the binary tree.原创 2014-11-20 04:36:18 · 322 阅读 · 0 评论 -
Construct Binary Tree from Inorder and Postorder Traversal
Fair Construct Binary Tree from Inorder and Postorder TraversalShow Result My Submissions37%AcceptedGiven inorder and postorder traversal of a tree, construct the binary tree原创 2014-11-20 05:31:21 · 279 阅读 · 0 评论 -
Unique Subsets
Given a list of numbers that may has duplicate numbers, return all possible subsetsNoteEach element in a subset must be in non-descending order.The ordering between two subsets is free.The原创 2014-11-29 02:22:17 · 356 阅读 · 0 评论 -
Unique Permutations
Fair Unique PermutationsShow Result My Submissions16%AcceptedGiven a list of numbers with duplicate number in it. Find allunique permutations.ExampleFor numbers [1,2,2] t原创 2014-11-29 03:05:01 · 322 阅读 · 0 评论 -
Convert Sorted List to Binary Search Tree
Problem :Given a singly linked list where elements are sorted in ascending order, convert it to a height balanced BST.转载 2014-11-24 06:17:09 · 242 阅读 · 0 评论 -
4 Sum
Fair 4 SumShow Result My Submissions19%AcceptedGiven an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quad原创 2014-11-30 00:20:07 · 228 阅读 · 0 评论