Task Manager: Print Tasks with Subtasks
Design the print function of a task manager. Each task has a unique id, a parent parent (0 means no parent, i.e. a top-level task), and a due date due (an integer, smaller means earlier).
Pri...
Example
Unlock to view complete problem details
and practice with sample input/output
Was this article helpful?
View Test Cases & Run Code requires membership
Standard Input
Execution Result:
