👩💻 Join our community of thousands of amazing developers!
2271. Maximum White Tiles Covered by a Carpet You are given a 2D integer array tiles where tiles[i] = [li, ri] represents that every tile j in the range li <= j <= ri is colored white. You are also given an integer carpetLen, the length of a single carpet that can be placed anywhere. Return the maximum number of white tiles that can be covered by the carpet. ...