Kth Smallest Element in a BST
CodingPhone, OnsiteSoftware EngineerReported Apr, 2026Medium Frequency
Company question banks are included with the Insider plan.
Given the root of a binary search tree, and an integer k, return the kth smallest value (1-indexed) in the tree.
A binary search tree satisfies the following constraints: