AlgoMaster Logo

Closest Binary Search Tree Value

tree=[4, 2, 5, 1, 3],target=3.7
0 / 8
42513Target:3.7Closest:-Diff:-
algomaster.io
Step:BST built. Find the value closest to target = 3.7