Leetcode 2209. Minimum White Tiles After Covering With Carpets
Given a binary string of tiles, place up to numCarpets fixed-length intervals (carpets may overlap) to cover tiles so as to minimize the number of uncovered '1' (white) tiles. This is an interval-covering optimization typically solved with DP over positions and remaining carpets (or greedy/DP with prefix sums to evaluate window coverage).
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
0
Hello Interview Premium
Your account is free and you can post anonymously if you choose.