Problem 2125 · Medium

Number of Laser Beams in a Bank

Count beams between consecutive nonempty device rows.

Open the interactive visualisation