Back to Question
Kth Smallest Element in a BST
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
Click "Start Speaking" and answer the question naturally.