Practical coding interview examples
Coding rounds have moved past one-shot puzzles. In 1,447 interview reports from 18 tech companies, the most common tasks were building a class whose methods share state, and parsing messy input. These 12 problems train those patterns. Each starts from the standard version, then adds the follow-ups candidates reported interviewers asking, as parts that extend the same code. Tests run in your browser, with hints, a walkthrough and a reference solution. Free, no account.
Which topics, and why: coding interview topics ranked by candidate reports
Stateful class design
19.7% of reports · 16 companiesParsing structured text
18.5% of reports · 15 companiesBFS shortest path (grids and state graphs)
12.6% of reports · 12 companiesTree recursion and traversal
12.2% of reports · 13 companiesHash-map counting, grouping and joins
10.5% of reports · 14 companiesTime-based state (expiry, TTL, snapshots)
10.4% of reports · 9 companiesIn-memory database or key-value store
9.1% of reports · 8 companiesSliding window, two pointers, string matching
6.8% of reports · 10 companiesIntervals and sweep lines
6.5% of reports · 10 companiesRate limiting and time-window counts
6.1% of reports · 10 companiesExpression evaluation and interpreters
6.1% of reports · 8 companiesLRU and LFU caches
1.7% of reports · 6 companiesFrequently asked
- What is a practical coding interview?
- A round where you build a small working program instead of solving one algorithm puzzle: a parser, a class with several methods that share state, a store with expiry or transactions. It usually comes in parts, and each part adds a requirement to the code you already wrote, so the interviewer sees how your design holds up under change.
- Where do these problems come from?
- The problems themselves are original, written around the patterns candidate reports mention most. What comes from reports is the progression: each page lists the follow-ups candidates said interviewers added on questions with that pattern, with how many reports mention each and at which companies, and the parts marked "from reports" are built on them. The company guides list the questions candidates described.
- Is LeetCode enough for coding interviews in 2026?
- It covers part of it. 7 of the 10 most common topics in 1,447 candidate reports are practical coding, such as stateful class design and parsing, which classic LeetCode lists cover lightly. BFS, trees, hash maps and heaps still matter, usually as one step inside a larger problem.
- How should I use these problems?
- Set a timer for the listed minutes, ask yourself the clarifying questions first, and solve part 1 completely before reading part 2. Run the tests after each part. Afterwards compare with the reference solution and read the follow-ups, then try one out loud as if an interviewer had asked it.
Preparing for a specific company?
The company guides collect what candidates report at each company: the rounds, the questions, their parts and follow-ups, and how often each one comes up.
Browse the interview guides