AlgoMaster Logo

Minimum Distance Between BST Nodes

tree=[4, 2, 6, 1, 3]
0 / 36
42613minDiff = ∞stacksortedinorder of a BST visits values in sorted order
algomaster.io
Step:Start: inorder traversal of a BST visits values in sorted order