← Amazon questions

Find N-th maximum and minimum in BST

Filed under Amazon

Find the N-th minimum and N-th maximum element in a Binary Search Tree. Provide an O(n) solution using traversal and an O(log n) solution using preprocessing (such as augmented tree nodes storing…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.