Kth Smallest Element in a BST at Uber
Medium76.5% acceptance
This problem has 87.5% frequency at Uber.
Problem Description
Given the `root` of a binary search tree, and an integer `k`, return _the_ `kth` _smallest value (**1-indexed**) of all the values of the nodes in the tree_.
Read full problem and hintsTopics
Also asked at 10 companies
More Uber Questions
Number of IslandsMediumConstruct Quad TreeMediumWord SearchMediumEvaluate DivisionMediumMaximum Depth of Binary TreeEasy
View all Uber questions