Learn
Practice
Newsletter
Resources
Animations
New
F
Toggle theme
0
F
0
Toggle menu
← Back to All Animations
Maximum Binary Tree
Bookmark
Input
Standard
Decreasing
Custom
nums
=
[3, 2, 1, 6, 0, 5]
NUMS · tallest in range = max
3
0
2
1
1
2
6
3
0
4
5
5
algo
master
.
io
Step:
Build a maximum binary tree — the max value in a range is its subtree root
0 / 40
Input
Standard
Decreasing
Custom
nums
=
[3, 2, 1, 6, 0, 5]
0 / 40
NUMS · tallest in range = max
3
0
2
1
1
2
6
3
0
4
5
5
algo
master
.
io
Step:
Build a maximum binary tree — the max value in a range is its subtree root