Problem 2650 · Hard

Design Cancellable Function

A long-running job advances in timed steps; a cancel request stops it before the next step that would finish after the cancel time.

Open the interactive visualisation