leetcode 95 & 96 解题思路
95.Unique Binary Search Trees II
Given an integern, generate all structurally uniqueBST's(binary search trees) that store values 1 ...n.
Example:
Input: 3
Output:
[
[1,null,3,2],
[3,2,nul...
原创
2019-03-15 10:26:43 ·
256 阅读 ·
0 评论