Learn
Practice
Newsletter
Resources
F
Toggle theme
0
F
Toggle theme
0
Toggle menu
← Back to All Animations
Unique Binary Search Trees II
Bookmark
Input
Standard
Small
Larger
Custom
n
=
3
dp[start][end] - Count of Unique BSTs
0
1
2
3
end
1
2
3
4
5
start
Base (empty range)
Current cell
Left lookup
Right lookup
Filled
Result
algo
master
.
io
Step:
Start: Count unique BSTs for values 1 to 3
0 / 57
Input
Standard
Small
Larger
Custom
n
=
3
0 / 57
dp[start][end] - Count of Unique BSTs
0
1
2
3
end
1
2
3
4
5
start
Base (empty range)
Current cell
Left lookup
Right lookup
Filled
Result
algo
master
.
io
Step:
Start: Count unique BSTs for values 1 to 3