Free · 8 topics · 24 problems

Data structures and algorithms, explained with pictures

Short, friendly lessons with real-world pictures and step-by-step diagrams. Then solve original interview problems right here in Python or JavaScript, with hints one step at a time.

  • No account needed
  • Runs in your browser
  • Python and JavaScript

Topics

Work through them in order: each one builds on the last.

  1. 1Arrays and hashingLearn arrays and hash maps for coding interviews with pictures: what each operation costs, plus counting, 'seen before' and prefix sum patterns.3 min5-question quiz3 problems
  2. 2Two pointers and sliding windowTwo pointers and sliding window explained with pictures: when each works, step-by-step diagrams, a quiz and practice problems in Python and JavaScript.3 min5-question quiz3 problems
  3. 3Stacks and queuesStacks and queues explained with pictures: push, pop, bracket matching and the monotonic stack pattern, with a quiz and practice problems.2 min5-question quiz3 problems
  4. 4Linked listsLinked lists explained with pictures: pointer rewiring, dummy heads and fast and slow pointers, with step-by-step diagrams and practice problems.2 min5-question quiz3 problems
  5. 5TreesBinary trees and BSTs explained with pictures: DFS, BFS, recursion and the BST rule, with step-by-step diagrams, a quiz and practice problems.3 min5-question quiz3 problems
  6. 6GraphsGraphs explained with pictures: BFS, DFS, grids, cycle detection, topological sort and Dijkstra, with diagrams, a quiz and practice problems.3 min5-question quiz3 problems
  7. 7Binary search and sortingBinary search without off-by-one bugs, explained with pictures: the template, rotated arrays, binary search on the answer and sorting costs.3 min5-question quiz3 problems
  8. 8Dynamic programmingDynamic programming explained with pictures: find the state, write the recurrence, memoisation vs tables. With a quiz and practice problems.2 min5-question quiz3 problems

Learn the idea

A short lesson per topic: how it works, what each operation costs, and the patterns interviewers look for.

Solve real problems

Write code in the browser and run it against tests. Your code never leaves your device.

Get unstuck, step by step

Reveal the breakdown one step at a time, then read a full solution with its complexity.

Preparing for a specific company?

Our company guides explain each interview process from the company's own pages, with a 4-week study plan.

See company guides

All problems and explanations are written by the Nokku team. Every solution is tested against a brute-force answer.