โ† Zomato questions

Convert adjacent 0s to 1s in minimum steps

Filed under Zomato

The question

Given a binary matrix where you can move in 4 directions, convert every adjacent 0 of 1 to 1 in a minimum number of steps and return the step count.

No write-up yet. Related questions below have one.

Related Zomato questions

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