← Hub

Interview Coach

Pattern Gym

Structure first. Explain before code. Syntax is optional shape at the end.

For each pattern: learn the signal, do the coach card, then (only if the rubric is strong) implement in a blank Xcode playground without Cursor.

LRU Cache

When you reach for it

Mental model

Hand walk: capacity 2.
put(1,a) list: 1
put(2,b) list: 2-1
get(1) moves 1 front: 1-2
put(3,c) evicts 2, list: 3-1

Hash map

When you reach for it

Mental model

Two-sum hand walk: nums=[2,7,11], target=9.
see 2, need 7, store 2->0
see 7, need 2, map has 2 -> return [0,1]

Two pointers

When you reach for it

Mental model

Stack

When you reach for it

Mental model

Walk: "([])"
push (, push [, pop on ] match, pop on ) match, empty = valid

Linked list pointers

When you reach for it

Mental model

BFS vs DFS

When you reach for it

Defensive talk track

Apple-style coding grades how you protect the happy path. Practice announcing edges before you type.