The Eight Coding Interview Patterns That Actually Show Up
You don't need to grind 500 LeetCode problems. Eight patterns cover the vast majority of interview questions — here's the working set.
Devon Park
Staff Engineer
There is a long tail of weird coding problems out there, but the head of the distribution is small. If you can recognize and execute eight patterns cleanly, you'll handle 80% of what gets asked in real loops at real companies.
The patterns
- Two pointers — sorted array problems, palindromes, partitioning.
- Sliding window — longest/shortest substring, fixed-window stats.
- Hash map indexing — counting, deduplication, lookups in O(1).
- Binary search — on sorted data, on answer space, on rotated arrays.
- Heap / priority queue — top K, scheduling, merging streams.
- Recursion with memoization — overlapping subproblems, dynamic programming entry point.
- Graph traversal — BFS for shortest unweighted, DFS for connectivity.
- Stack — parsing, monotonic stack, balanced expressions.
How to drill them
Pick five to ten problems per pattern, not fifty. After each problem, write a one-sentence note about the pattern, the trick, and the time complexity. Re-read your notes weekly. Pattern recall — not problem recall — is what shows up in interviews.
Skip the rabbit holes
- Bit manipulation puzzles. Almost never asked at companies you'd want to work at.
- Obscure DP variants. Standard knapsack and longest-subsequence is enough.
- Math-heavy problems. If you see Catalan numbers, the company is signaling something off about its hiring bar.
What to spend your last week on
In the final week before a loop, stop learning new patterns. Re-do five medium problems per day across patterns you already know, on a timer, and explain your solution out loud. Speed and verbalization are what break down under pressure — not the pattern itself.
Teste Acedly AI bei deinem nächsten Interview.
Echtzeit-Unterstützung, verborgen bei der Bildschirmfreigabe, in unter 200 ms. Kostenlos starten — keine Kreditkarte.
Weiterlesen
Weiterlesen
- Technical Interviews7 min read
The Take-Home Is Not Dead Yet — Here's How to Win One
Some companies still use take-homes. They're easier to game than ever, but harder to stand out on. Here's the playbook.
Devon Park - Technical Interviews8 min read
Surviving (and Enjoying) the Live Coding Interview
What to do in the first 90 seconds, when to write tests, and how to recover when your first idea is wrong.
Devon Park - Interview Strategy7 min read
Mastering the STAR Method for Behavioral Interviews
A complete guide to structuring memorable answers using Situation, Task, Action, and Result — with examples from engineering, design, and product roles.
Maya Chen