Given the root of a binary search tree (BST) and an integer
kkth[1, 10^4][1, 10^5]kthNote: The solution should be efficient in terms of time complexity, as the input values are relatively large.
Input: {"root":[3,1,4,null,2],"k":1} Output: 1
Solve problems, verify your skills, and earn XP.