Back to QuestionsPractice with This Question
Kth Smallest Element in a BST
94.8K views•Asked at Meta•
Medium
Question Explain
Given the root of a BST and an integer $k$, find the $k$-th smallest element. Use in-order traversal (DFS) to leverage the BST property.
Start Trying This Question Simulation
Practice answering orally or with text to get instant AI feedback.