← Expedia questions

Set matrix zeroes / ones conditionally

Filed under Expedia

Given an M x N matrix containing only 0s and 1s, update the matrix such that if an entry is originally 1, its entire row and column are marked with 1. Newly set 1s must not trigger further…

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

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