← ALL NOTES
Array

2054. Two Best Non-Overlapping Events

Events events[i] = [start, end, value], each occupying [start, end] inclusive. Choose at most two non-overlapping events maximising total value (non-overlapping means one's end is strictly less than…

Loading…