Array
3414. Maximum Score of Non-overlapping Intervals
The whole problem is weighted interval scheduling with two twists bolted on: you may take at most four intervals, and among all maximum-weight choices you must return the lexicographically smallest list of original indices.
Loading…