top | item 45224381 (no title) mattmcal | 5 months ago Yes, you just need to maintain a stack of rectangles ordered from lowest to highest. You only ever have to push and pop the top of the stack, so the runtime is O(n). discuss order hn newest No comments yet.
No comments yet.