LeetCode 253 Meeting Rooms II - Why Naive Fails

The trap

Try all possible room assignments and find the minimum.

Or simulate minute-by-minute, tracking which meetings are active.

Both approaches are O(n2)O(n^2) or worse. Can you process events more efficiently?