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.
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.