Amazon | OA | 19th nov 2025 | Dispatch Logistics | Sort Warehouse Shelf

Amazon · Question · Posted Apr 2026

Code Question 1: Dispatch Logistics Problem Statement: The logistics coordinator at an Amazon fulfillment center needs to dispatch n items from different warehouses, the warehouse of the i^{th} item is represented by an array warehouses[i]. The coordinator is allowed to perform one operation at a time. Each operation is described below: If the inventory has two or more items, the coordinator can select two items x and y from the inventory if they are stored in different warehouses. i.e. warehouses[x] ...

The full answer & interview discussion are available to premium members.

Log in Create a free account