Problem 2271 · Medium

Maximum White Tiles Covered by a Carpet

Sort the tile ranges and slide a carpet that starts on a tile, counting whole tiles and the part of the last one that fits.

Open the interactive visualisation