← Questions

Add one delivery center to minimize the worst distance

0
AmazonCodingLast asked Nov 2026

A coding interview question asked in Amazon's online assessment, last asked Nov 2026. It tests grids, binary-search and bfs.

A grid marks delivery centers with 1 and ordinary locations with 0. The distance between two cells is max(|r1 - r2|, |c1 - c2|), so moving diagonally counts as one step.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

  • Amazon · Online assessment · Last asked Nov 2026Coding problems plus a repository bug-fix section with a built-in assistant or a design scenario, then a work-style survey · AI only inside the bug-fix section's built-in assistant

What it tests

grids · binary-search · bfs

Your code and the AI tutor open when you unlock this question.