Back to problems

Task Scheduler with Timed Execution and Dynamic Insertion

Algorithm · Tesla · Hard

Requirements Build a scheduler that runs callbacks at their designated execution times. Tasks must be insertable before or after the scheduler begins processing work. Every task includes a target time, and the scheduler should invoke it at that time or with the smallest practical delay. Provide a runnable implementation rather than only describing the design. The judged starter code uses the following entry point: The scheduler should provide an operation for adding a task…

Checking your access…