
Task scheduler that pops the earliest deadline once its subtasks are doneCodingImplement a class with addtasks(tasks) and consumetask(). Each task has an id, a deadline and a list of subtasks. 1. consumetask returns the task with the earliest deadline, or a…
Last asked May 2026