AlgoMaster Logo

Minimum Distance Between BST Nodes

tree=[4, 2, 6, 1, 3]
0 / 11
algomaster.io
Step:Start: gather all values, sort them, then scan adjacent gaps