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…