Re:Leetcode Considered Harmful
by kamil3141 on Tuesday June 28, 2022 @03:42AM
(#31905192)
On 1, you don’t really have to consolidate them just to check if the whole range is covered. You can just sort beginnings and ends together and then iterate over them with some tmp variable to check that you always have at least one beginning “open” (n log n).
[ Parent
| on HN ]
There are no comments on this comment yet.