LeetCode 96. Unique Binary Search Trees
96. Unique Binary Search Trees
Difficulty:: Medium
Given n, how many structurally unique BST’s (binary search trees) that store values 1 … n?
Example:
1 | Input: 3 |
Solution
Language: Java
1 | class Solution { |
Difficulty:: Medium
Given n, how many structurally unique BST’s (binary search trees) that store values 1 … n?
Example:
1 | Input: 3 |
Language: Java
1 | class Solution { |