LeetCode: https://leetcode.com/problems/kth-smallest-element-in-a-bst/
Return the k-th smallest value in a BST.
5
0
3
1
6
2
2
3
4
4
5
6
1
7
tree=Array(8)
k=3
Step 1 / 3
Step 1:
Do inorder traversal; each pop gives the next smallest.
Focus: select @ [0]
k=3