The interview problem

Practice prompt

A warehouse wants shorter picking routes without mixing customer orders or overloading carts. Design the planning and execution loop.

Original practice, not a reported company interview. Scenarios and numbers are illustrative. Interview date: not applicable. Sources retrieved October 1, 2026.

1. Scope and worked approach

Assume known aisle topology, item locations, cart capacity and order deadlines. Group compatible orders, optimize a route through required locations and preserve item-to-order bins in the execution plan. Use a heuristic baseline before expensive optimization. Reserve inventory separately from route planning and version plans so device acknowledgments refer to the intended batch. Replan only unfinished work after exceptions.

2. Trace the design or derivation

Select compatible orders
  → check capacity
  → plan aisle route
  → execute versioned picks
  → reconcile exceptions

A picker confirmation should identify item, location, quantity and destination bin. A route step marked visited does not prove every item was picked. Keep shortages explicit and return unfulfilled reservations according to policy; silently substituting an item can corrupt both inventory and the customer's order.

3. Calculate the example

Three orders need items at distances 10,20 and 30 meters along one aisle from the depot. Separate round trips total 20+40+60=120 meters; one compatible combined trip to 30 and back is 60 meters. This saving assumes cart capacity and order separation remain feasible.

4. Failure cases and trade-offs

Shortest distance can miss a shipping deadline or create aisle congestion. A location record may be wrong or stock absent. Larger batches reduce travel but increase sorting and waiting costs; evaluate completed correct orders, not route length alone.

5. Validation, follow-ups and self-review

Test missing stock, full carts and a canceled order mid-route. Follow-up: how would one-way aisles change the graph? Self-review: preserve order identity, capacity and exception recovery.

Sources and related practice

Technical reference: developers.google.com — Constrained routing with time windows; warehouse and pooling examples are original.

Source publication/update: Not established. Retrieved October 1, 2026. The workflow, calculations and review exercises are original; this reference is not evidence that a company asked this question.

Continue with Design an inventory reservation system; Insert a rider into an existing pooled route.

Continue your preparation

Choose a connected learning path or browse more System design questions. Read our editorial method and attribution policy.