โ† Amazon questions

Minimum bombs to destroy matrix cells

Filed under Amazon

Given an n*n matrix with distinct elements from 1 to n^2, find the minimum number of bombs required to destroy all cells. Bombing cell i destroys it and adjacent cell i-1 if adjacent.

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.