Kth Smallest Element in a BST
Try to solve the Kth Smallest Element in a BST problem.
We'll cover the following
Statement
Given the root node of a binary search tree and an integer value k
, return the smallest value in the tree.
Constraints:
- The number of nodes in the tree is .
-
Node.data
Create a free account to view this lesson.
By signing up, you agree to Educative's Terms of Service and Privacy Policy