← ALL NOTES
Array

2125. Number of Laser Beams in a Bank

Matrix bank of '0'/'1' rows ('1' = security device). A laser beam connects two devices in adjacent non-empty rows (vertically, skipping empty rows), one per row, all-to-all. Count total beams.…

Loading…