Problem 2054 · Medium

Two Best Non-Overlapping Events

Maximize the total value of at most two nonoverlapping events.

Open the interactive visualisation