Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 2271. Maximum White Tiles Covered by a Carpet
Given non-overlapping intervals of white tiles on a number line and a fixed-length carpet, place the carpet to maximize the total number of covered unit tiles. This reduces to finding the max covered length of intervals under a fixed-length window — typically solved by sorting intervals and using two pointers with prefix sums or binary search to handle full and partial interval coverage.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.