Back to Questions

Kth Smallest Element in a BST

94.8K viewsAsked 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.

Practice with This Question