95. Unique Binary Search Trees II--还未做
2017-01-15 20:17
363 查看
Given an integer n, generate all structurally unique BST’s (binary search trees) that store values 1…n.
For example,
Given n = 3, your program should return all 5 unique BST’s shown below.
1 3 3 2 1
\ / / / \ \
3 2 1 1 3 2
/ / \ \
2 1 2 3
Subscribe to see which companies asked this question
For example,
Given n = 3, your program should return all 5 unique BST’s shown below.
1 3 3 2 1
\ / / / \ \
3 2 1 1 3 2
/ / \ \
2 1 2 3
Subscribe to see which companies asked this question
相关文章推荐
- LeetCode *** 95. Unique Binary Search Trees II
- [leetcode] 95.Unique Binary Search Trees II
- 算法分析与设计第五周习题:95. Unique Binary Search Trees II
- Leetcode 95. Unique Binary Search Trees II
- Leetcode: 95. Unique Binary Search Trees II
- 95. Unique Binary Search Trees II(unsolved)
- leetcode 95. Unique Binary Search Trees II-分治算法|动态规划|卡特兰数
- 95. Unique Binary Search Trees II
- Leetcode-95.Unique Binary Search Trees II(a representative recursion problem)
- LeetCode-95. Unique Binary Search Trees II
- 95. Unique Binary Search Trees II
- [LeetCode]95. Unique Binary Search Trees II(DP,二叉树)
- leetcodeOJ 95. Unique Binary Search Trees II
- 95. Unique Binary Search Trees II
- LeetCode 95. Unique Binary Search Trees II
- Leetcode 95. Unique Binary Search Trees II及二叉树最大最小深度镜像树总结
- leetcode-java-95. Unique Binary Search Trees II
- LeetCode 95. Unique Binary Search Trees II
- [Leetcode]@python 95. Unique Binary Search Trees II
- [Leetcode] 95. Unique Binary Search Trees II 解题报告