← Amazon questions

Best fit for memory block in BST

Filed under Amazon

Given a Binary Search Tree representing available memory block sizes and a target memory block size M, find the node in the BST that represents the best fit (the smallest memory block greater than or…

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.