Learn
Practice
Newsletter
Resources
Animations
New
F
Toggle theme
0
F
0
Toggle menu
← Back to All Animations
Minimum Distance Between BST Nodes
Bookmark
Input
Example 1
Example 2
Example 3
Custom
tree
=
[4, 2, 6, 1, 3]
4
2
6
1
3
minDiff = ∞
stack
sorted
inorder of a BST visits values in sorted order
algo
master
.
io
Step:
Start: inorder traversal of a BST visits values in sorted order
0 / 36
Input
Example 1
Example 2
Example 3
Custom
tree
=
[4, 2, 6, 1, 3]
0 / 36
4
2
6
1
3
minDiff = ∞
stack
sorted
inorder of a BST visits values in sorted order
algo
master
.
io
Step:
Start: inorder traversal of a BST visits values in sorted order