95. Unique Binary Search Trees II
2019-07-28
95. Unique Binary Search Trees II
Given an integer _n_, generate all structurally unique BST’s (binary search trees) that store values 1 … _n_.
Example:
1 | Input: 3 |
Code:
1 | # Definition for a binary tree node. |