Mid-level track

Mid-level

Interviewing for a mid-level role. Expand pattern coverage, get fluent with the most common system design prompts, know the everyday tradeoffs cold, and have stories that show ownership and scope cuts.

Overall progress
0 / 92
0%

Core patterns

0/17 · 0%

Every pattern interviewers reach for at the mid level.

Sliding Window
Maintain a window of elements over a sequence; expand/shrink to satisfy a constraint while tracking an aggregate.
Pattern
Two Pointers
Two indices walk a sorted (or paired) structure from different positions to converge on a target.
Pattern
Fast & Slow Pointers (Floyd's)
Two pointers move at different speeds through a linked structure to detect cycles or find midpoints.
Pattern
Merge Intervals
Sort intervals by start, then sweep merging overlaps.
Pattern
Cyclic Sort
Place each number at its index by swapping; O(n) sort when values are a known bounded range like 1..n.
Pattern
In-Place Reversal of LinkedList
Reverse pointers segment by segment without extra space using prev/curr/next bookkeeping.
Pattern
Tree BFS
Level-order traversal using a queue; emit one level at a time.
Pattern
Tree DFS
Recursive or stack-based depth-first traversal; pre/in/post order.
Pattern
Two Heaps
Maintain a max-heap for the lower half and a min-heap for the upper half of a stream.
Pattern
Subsets (BFS-style generation)
Iteratively or recursively build all subsets/permutations/combinations by extending prior results.
Pattern
Modified Binary Search
Binary search on a non-trivial space: rotated arrays, infinite arrays, the answer itself.
Pattern
Top K Elements
Maintain a heap of size k to track the k largest/smallest/most-frequent elements.
Pattern
K-Way Merge
Use a min-heap of k pointers (one per list) to merge k sorted sources in O(N log k).
Pattern
0/1 Knapsack (DP)
Choose/skip decisions over items with capacity; tabulate optimal value for subproblems.
Pattern
Monotonic Stack/Queue
Stack/deque maintained in increasing or decreasing order to answer next-greater/smaller queries.
Pattern
Graph BFS/DFS
Explore a graph by levels (BFS) or branches (DFS), tracking visited nodes.
Pattern
Backtracking
DFS through a decision tree, undoing choices on failure to try alternatives.
Pattern

Medium problems across patterns

0/28 · 0%

Mostly Blind 75 mediums — the most-asked problems at mid-level loops.

System design building blocks

0/12 · 0%

The concepts you'll point at when sketching basic designs.

Starter SD prompts

0/4 · 0%

Get fluent on the 3-4 prompts that come up most often before tackling the long tail.

Production techniques

0/13 · 0%

The toolbox you'll reach for in design discussions and code reviews.

Exponential Backoff + Jitter
Grow retry intervals exponentially and add randomization so clients don't synchronize their retries.
Technique
Idempotency Keys
Caller sends a unique key with each request; server dedupes on it so retries don't double-charge.
Technique
Circuit Breaker
Track failures from a dependency; once they exceed a threshold, open the circuit and fail fast for a cool-down period.
Technique
Bloom Filter
Probabilistic set membership in tiny memory. No false negatives; tunable false-positive rate.
Technique
Token Bucket
Bucket refills at rate R; each request takes one token. Allows controlled bursts up to bucket size.
Technique
Leaky Bucket
Requests enter a queue, processed at fixed rate. Smooths out bursts entirely — no spike ever reaches downstream.
Technique
Batching
Coalesce many small operations into one large one to amortize fixed per-request overhead.
Technique
Debounce
Wait until a flurry of events stops for N ms, then act once. Drops everything in between.
Technique
Throttle
Emit at most once per N ms regardless of how often it's called. Unlike debounce, never goes silent.
Technique
Snowflake IDs
64-bit unique IDs: [timestamp][machine-id][sequence]. Time-ordered, distributed, no central coordinator.
Technique
Leases + TTL
Grant time-bounded exclusive ownership. Holder must renew before expiry; if it dies, the lease auto-releases.
Technique
Heartbeats
Periodic 'I'm alive' signal. Absence of N consecutive heartbeats means the peer is presumed dead.
Technique
Optimistic Concurrency / CAS
Read a value with its version, send update conditional on version unchanged. Server rejects if someone else wrote in the meantime.
Technique

Tradeoffs you'll get asked about

0/10 · 0%

The ones that come up nearly every loop.

Behavioral

0/8 · 0%

Mid-level interviews probe scoping, conflict, basic mentorship, and accountability for shipped work.

Big O — full coverage

All complexity classes, with the average-vs-worst nuance for hashmaps, quicksort, etc.

Open Big O Quiz