Spiral 50: algorithms and data structures for coding interviews

The most efficient way to prepare for your coding interviews

  • A spiral learning method where each pattern you learn comes back repeatedly in later problems, combined with harder ideas.
  • An in-browser debugger that draws data structures line by line as your code runs.
  • High-quality solution explanations with multiple approaches and step-by-step animated illustrations.

Lifetime access for $39

EasyMediumHard

Coding is getting easier, but coding interviews are getting harder

You still need to solve LeetCode-style problems in an interview, even though AI writes most of your code nowadays.

Companies are testing new interview formats, but these usually come in addition to the standard coding interview, not instead of it.

So there is even more to prepare for, and no one knows how it will change in the near future.

The solution is not to wait until everything stabilises, or to avoid standard coding interviews altogether.

It is to prepare in the most efficient way possible.

How it works

Solve 50 problems with a spiral learning method where each pattern you learn comes back repeatedly in later problems, combined with harder ideas.

19 lessons15 easy25 medium10 hard
Your techniques basket

Hash table is explained in chapter 2 and comes back in 12 problems

  • Reinforce what you learn

    Every concept you learn comes back several times in later problems, combined with harder ideas. So you reinforce what you learn through repetition.

  • Learn to recognise patterns

    Other problem lists like NeetCode 150 or Blind 75 group problems by a specific technique. The issue with this approach is that you know which technique to use before you read the problem. Here, problems are grouped into four broader chapters. You build a techniques basket along the way, and a problem might need any technique from it. This way you learn to recognise the patterns in any problem.

  • Solve only 50 problems

    You don't need to solve 1,000 problems to prepare for an interview. This course contains only 50, but they cover all the data structures and patterns you need, in proportion to how often each one comes up in interviews.

  • Follow the roadmap

    Besides the raw problems, there is a complete roadmap, from A to Z, that explains every technique in a separate lesson. The lessons are practical too, they include exercises on implementing common data structures and algorithms. All the techniques and problems are ordered by difficulty, and each problem comes only after the technique it needs has been explained.

Debugger

It runs your code and shows the exact state after every line. It draws variables, stack frames, objects and pointers, and identifies common data structures like arrays, hash tables, stacks, queues, linked lists, trees and graphs.

Being able to explain how your code runs is an important signal in a real interview, so you learn and practise it on every problem.

Given an array of integers nums and an integer target, return the indexes of the two numbers that add up to target.

def twoSum(nums: list[int], target: int) -> list[int]:
seen = {}
for i, n in enumerate(nums):
if target - n in seen:
return [seen[target - n], i]
seen[n] = i
raise ValueError('no answer')
1 / 16

Illustrations

Each problem comes with an illustrated solution, so the approach is easy to understand and clearly separated from the code implementation. It's much more efficient than watching a one-hour video for each problem.

Ideally, you'd describe your approach to the interviewer in a similar way, so you build this habit straight away.

Palindrome Linked List

Given the head of a singly linked list, return true if the values read the same forwards and backwards.

1 → 2 → 3 → 2 → 1 slowfastleftright
move slow 1 step, fast 2 steps
1 / 8

Merge Intervals

Given an array of intervals where intervals[i] = [start, end], return a new array with overlapping intervals merged.

[2, 6]
[15, 18]
[1, 3]
[8, 10]
merged
05101520
Sort the intervals
1 / 6

Container With Most Water

You are given an integer array lines, where each element is the height of a vertical line standing at that index. Two lines and the axis between them form a container. Find the two lines that form the largest container and return its area.

012345
lo hi
area = 5 * 2 = 10, largest_area = 10
1 / 6

Chapters

Fundamentals

Free

Arrays and strings, with core techniques like finding a brute force approach, measuring algorithm complexity, sorting and bit manipulation.

Helper data structures and core patterns

Data structures (hash tables, stacks, queues, heaps) and patterns (two pointers, binary search, prefix sums, sliding window) commonly used to optimise brute force solutions.

  • Hash table
  • Stack
  • Queue
  • Heap
  • Core patterns
  • 15 problems

Linked lists, trees and graphs

How to represent these data structures, and how to search and traverse them.

  • Linked list
  • Tree
  • Binary Search Tree
  • Trie
  • Graph
  • Graph algorithms
  • 15 problems

Backtracking, greedy and dynamic programming

How to generate every candidate with backtracking and how to optimise the solution with greedy algorithms and dynamic programming.

  • Backtracking
  • Greedy vs dynamic programming
  • 15 problems

Author

Amir speaking at a conference

Hi, I'm Amir.

I'm a former senior software engineer at Meta. While working at Meta, I conducted about 100 coding interviews. I really believe that most candidates fail because they didn't prepare enough, or prepared the wrong way.

So I built this course to help you prepare the right way, with the most important theory and problems, combined with great tools.

Pricing

Lifetime access for $39

Read the first chapter and solve its problems for free. If the course works for you, one payment unlocks the rest.

First chapter

$0no sign-up needed
Start freeStart the course
  • Fundamentals chapter
  • 15 exercises
  • 5 problems with their solutions
  • Run, debug and submit your code for these problems

Do I need to sign in for the free access?

No. You can read the free content without signing in. Sign in only if you want to track progress or submit a solution.

Is it a subscription?

No. You pay $39 once and the rest of the course unlocks for your account.

What languages are supported?

Python, JavaScript and Java today, and we are working on adding more. Let us know if you need another language supported.

I got free early access before. Do I need to buy the course?

No. The course stays free for early access users. Sign in with the same account to unlock it.