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

Parsing structured text

18.5% of reports · 15 companies

BFS shortest path (grids and state graphs)

12.6% of reports · 12 companies

Tree recursion and traversal

12.2% of reports · 13 companies

Hash-map counting, grouping and joins

10.5% of reports · 14 companies

Time-based state (expiry, TTL, snapshots)

10.4% of reports · 9 companies

In-memory database or key-value store

9.1% of reports · 8 companies

Sliding window, two pointers, string matching

6.8% of reports · 10 companies

Intervals and sweep lines

6.5% of reports · 10 companies

Rate limiting and time-window counts

6.1% of reports · 10 companies

Expression evaluation and interpreters

6.1% of reports · 8 companies

Frequently 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
Is this helpful?