Notion Coding Interview Questions
25 Notion coding interview problems with full optimal solutions — 14 easy, 10 medium, 1 hard. Every problem ships with multiple approaches (brute-force first, then the optimal), complexity tables for each, company-specific tips on what an Notion interviewer values, and a FAQ section.
Showing 6 problems of 25
- #14easyfoundational
14. Binary Tree Inorder Traversal
Visit every node in a binary tree left-root-right — the same traversal order Notion's block engine uses to render nested page content, making this a direct window into how interviewers think about document structure.
- #17easyfoundational
17. Diameter of Binary Tree
Find the longest path between any two nodes in a tree — a metric Notion would use to measure the worst-case traversal depth across a workspace's page hierarchy, tying depth-first search to real document-graph reasoning.
- #2easyfrequently asked
2. Two Sum
Given an array and a target, return the indices of two numbers that add to the target. Notion uses this as a warm-up to gauge how quickly you reach for a hashmap.
- #3easyfrequently asked
3. Valid Parentheses
Given a string of brackets, return whether it's properly nested and matched. Notion asks this because their block editor literally validates nested markdown delimiters this way.
- #5easyfrequently asked
5. Maximum Depth of Binary Tree
Return the maximum depth of a binary tree. Notion uses this as a recursion warm-up — page nesting in their workspace is conceptually the same tree.
- #12easyfrequently asked
12. Best Time to Buy and Sell Stock
Find the max profit from a single buy/sell of one stock. Notion likes this because it introduces the running-min trick — useful in throttling and rate-limit calculations.
Related interview-prep guides
Replit for Tech Interviews in 2026: The Full-IDE Take-Home Guide
Replit-for-hiring is the full-IDE take-home format. The candidate gets a forked Repl, hours or days to ship a working project, and a commit history the reviewer will scrutinize line-by-line. This guide breaks down what Replit captures, what it doesn't, and how a desktop AI setup pairs with the multi-day window.