← Amazon questions

Best fit box for product size and longest path in binary tree

Filed under Amazon

Design a program to find the best fit box from a given array of increasing box sizes for a given product size. Also, find the longest path in a binary tree, printing the lexicographically first path…

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.