โ† Zoho questions

Modify boolean matrix to set adjacent cells to zero

Filed under Zoho

Given a Boolean matrix of size M x N, modify it in-place such that if any cell is 1, its adjacent cells (up, down, left, right) are made 0.

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 Zoho questions

Collected from public candidate posts and coding forums. Updated Nov 2026.