Repository navigation
en/lc/3413/ #6219
en/lc/3413/
#6219
Replies: 1 comment
Approach: Sort ranges + Sliding Window.Add fully covered ranges to cur_sum; remove ranges outside the window.Subtract the uncovered part of the left range to calculate the actual sum.REV is IMP: run on [-r, -l, value] to check partial coverage on the opposite side. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
en/lc/3413/
LeetCode solutions in any programming language
https://leetcode.doocs.org/en/lc/3413/
All reactions