Problem 1665 · Hard

Minimum Initial Energy to Finish Tasks

Sort tasks by their slack, minimum minus actual, so the tightest starts come before energy is spent.

Open the interactive visualisation