Leetcode 230. Kth Smallest Element in a BST
题目
Input: root = [3,1,4,null,2], k = 1
3
/ \
1 4
\
2
Output: 1Input: root = [5,3,6,2,4,null,null,1], k = 3
5
/ \
3 6
/ \
2 4
/
1
Output: 3思路
解答
Complexity Analysis
拓展
总结
Reference
Last updated