Try to solve the Kth Smallest Element in a BST problem.
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
Try to solve the Kth Smallest Element in a BST problem.
Given the root node of a binary search tree and an integer value k
, return the smallest value in the tree.
Constraints:
Node.data