Peak Capacity Overlapping Events (Line Sweep)

Asked at Faire · Coding Questions · Difficulty: Medium

When multiple events overlap in time, the total consumed capacity at any time is the sum of their `cap` values.

Loading the problem…