Prioritized Task Listing with Sub-task Ordering

Asked at Meta · Coding Questions · Difficulty: Medium · Last asked Nov 10, 2026

A to-do application keeps a flat list of tasks, some of which are sub-tasks of others. Build a `TaskManager` that lists the tasks a person should look at next, in a well-defined order, and then extend the listing so that sub-tasks are placed around their parent task.

Loading the problem…