solulubeta
Sign in
Story Problems / Arrays, windows & two pointers
01.18 · Problem

Broken Bulbs on the Grid

Medium Matrix: mark rows and columns first Pro

This problem is part of solulu Pro

A stage has a grid of lights (1 = on, 0 = off/broken). Because of the wiring, if a light at (r, c) is broken (0), then every light in row r and column c must be switched off too. Return the final grid. (Decide using the…

Lifetime ₹2,000 ₹1,000 · Beta offer
Mark this problem as solved when you are finished.

Item 18 of 94 · updated 2026-10-12