LeetCode: https://leetcode.com/problems/closest-binary-search-tree-value/
Find the value in a BST that is closest to the target.
4
0
2
1
5
2
1
3
3
4
tree=[4, 2, 5, 1, 3]
target=3.7
closest=4
Step 1 / 3
Step 1:
Walk down the BST, updating the closest value.
Focus: select @ [0]
target=3.7closest=4