← Amazon questions

Weight sorting puzzle & Trapping Rain Water

Filed under Amazon

Part 1: Given n weights, find the minimum time to sort them in descending order using a single basket (swapping adjacent elements). Part 2: Trapping Rain Water: Given an array of non-negative integers…

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.