30:00
Given the root of a binary search tree, and an integer k, return the kth smallest value (1-indexed) of all the values of the nodes in the tree.
The number of nodes is nnn.
1≤k≤n≤1041 \leq k \leq n \leq 10^41≤k≤n≤104
0≤Node.val≤1040 \leq \text{Node.val} \leq 10^40≤Node.val≤104
Init stack
3
1
4
2