Notion logo

Notion Interview Question Bank

Notion's interviews are built around its own product: tables, documents with edit history, page permissions, to-do lists, and calendars. Coding rounds reward building a clean API quickly and then reasoning about caching, mutability, and scale. Offers often turn on fit with the specific team's stack and focus.

Coding problems
14
Before you start
Showing 21 of 21
Coding
MediumFree preview

Table Aggregation with Caching Follow-ups

Given `Row(tableId, value)` rows grouped by table, implement `computeAggregations(tableId)` returning COUNT, SUM, and AVERAGE. Follow-ups: serve many aggregations on immutable tables (precompute + cache, lazy cache when not read-heavy), handle mutable tables (versioned snapshots / incremental maintenance), add MAX with efficient updates, and handle tables too large for memory. A task/rows variant asks for an `applyModification` add/delete/move API.

SWE
medium
hashmap
caching
data-structure
4 related discussions