Back to problems

Implement a Task Manager That Executes Tasks in Run Order

Object-Oriented Programming · Sigmacomputing · Medium

Problem: Implement a Task Manager Design a TaskManager that accepts multiple run_task invocations and executes the provided callbacks/tasks in a prescribed sequence. The original interview setting involved JavaScript frontend coding, focusing on Promise mechanics, asynchronous scheduling, and basic data structures. This version is reframed as a deterministic coding exercise. Rules Every task has two properties: id: a unique task identifier. timeout: a delay value, treated as…

Loading the rest of the question…