Problem 3531 · Medium

Count Covered Buildings

A building is covered when another building lies on each of its four sides in the same row or column; count the covered buildings.

Open the interactive visualisation