โ† Amazon questions

Find max N elements in BST

Filed under Amazon

Given the root of a Binary Search Tree and an integer N, return the maximum N elements present in the BST in descending order.

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.