InterviewDB
Question
TODO List: Implement a TODO List Class with Priority Queue and Deadline Sorting
Onsite
Question Details
Problem Implement a TODOList class that manages tasks with priorities and optional deadlines. The list should always return the highest-priority, earliest-deadline task next. Example: Follow-ups How do you handle lazy deletion for complete() efficiently with a heap? What happens if two tasks have equal priority and no deadline? How would you add recurring tasks that re-insert after completion? How would you persist and restore the list across process restarts?
Full Details
🔒
Unlock all Notion questions
Full insider details, leaked discussions, and candidate experiences.
Get full access — $100 a year, unlimited accessAbout This Question
This is a reported interview question from a notion interview during the onsite round.
It covers the following topics: Coding, Queue, Heap, Onsite .
More Notion Interview Questions
InterviewDB
Chat Service: Implement a Multi-Room Chat Backend with Message History
InterviewDB
Mobile Logging Library: Design a Thread-Safe In-App Logger for Android and iOS
InterviewDB
Notion SWE Phone - Document Store
InterviewDB
Inline Database: Build an In-Memory Key-Value Store with SQL-Like Query Support
InterviewDB
JSON Display: Render Nested JSON as a Collapsible Tree in the Browser