← Amazon questions

Remove minimum people so no two are adjacent

Filed under Amazon

Given an M x N grid containing people and empty spaces, remove the minimum number of people such that no two people remain adjacent horizontally or vertically.

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.