← Amazon questions

K'th Largest in BST and Subset of Rectangles

Filed under Amazon

Find the k'th largest element in a Binary Search Tree with constant extra space (Morris Traversal), and find the maximum subset of rectangles where no rectangle fits entirely inside another.

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.