Kth Smallest Element in BST
Problem
Given a binary search tree, write a function kthSmallest
to find the kth smallest element in it.
For example:
Solution
Last updated
Was this helpful?
Given a binary search tree, write a function kthSmallest
to find the kth smallest element in it.
For example:
Last updated
Was this helpful?