Leetcode 391. Perfect Rectangle
Given a list of axis-aligned rectangles, determine whether they exactly form a single rectangular region โ i.e., their union equals one rectangle with no gaps or overlaps. Must efficiently verify coverage and non-overlap for up to 2ยท10^4 rectangles with large coordinate ranges.
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.