← Questions

Nested todo list with subtasks

0
NotionCodingLast asked Jun 2026

A coding interview question asked in Notion's practical coding and debugging round, last asked Jun 2026. It tests trees, recursion and oop.

Build an in-memory todo list where any task can hold subtasks, nested to any depth. Users add tasks, complete them and print the list with its hierarchy.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

What it tests

trees · recursion · oop

Your code and the AI tutor open when you unlock this question.