Part IV

DSA for Interviews

89 problems · 18 groups

The coding problems interviews keep asking, grouped by topic. Each topic opens with a primer: the technique, the words that point to it, a Swift template. Each problem gives starter code and tests to paste into Xcode or a playground, then — hidden until you have tried — the cue, the approach in plain words, a compiled and tested Swift solution, the Swift trap and the follow-ups. Blind 75 at its core, plus the problems German loops (Zalando, Sixt, Delivery Hero, N26) are documented asking.

Start here

Arrays and hashing

Prefix sums

Two pointers

Sliding window

Stack

Binary search

Linked list

Trees

Tries

Heap

Backtracking

Graphs

Intervals

Greedy

1-D dynamic programming

2-D dynamic programming

Matrix

Bit manipulation