Given a BST, how would you return the nth smallest element. The code had to cover all the edge cases and was expected to write a logn solution.
-- Umer --
Given a BST, how would you return the nth smallest element. The code had to cover all the edge cases and was expected to write a logn solution.
-- Umer --