Snowflake
A small, bank-driven loop: a handful of coding families recur, and the follow-ups plus your own test cases decide a round more than the base problem does. Prompts often start on a blank page with no signature, so clarify, pick the interface and write the tests yourself. System design is infrastructure — a job scheduler, a key-value store, an ACL service — and the interviewer drills one mechanism until the hour ends.
Typical loop
- 1Recruiter screen: ~30 min — background, location, work authorization
- 2Some applicants: a ~20 min AI-conducted voice pre-screen on two projects, a conflict, and how you use AI tools
- 3Technical phone screen: two 45–60 min CoderPad rounds — usually both coding, sometimes one coding and one system design
- 4Onsite, often in person: three to four 60 min rounds — one or two coding, one system design, one behavioral; some loops add a project deep dive or an AI-augmented coding round
- 5Team matching: hiring-manager and teammate chats, still evaluative
Questions
Callback's practice questions and the LeetCode questions Snowflake has been asking, filtered together.
Practice questions
Shortest Path Around Obstacles
Algorithms & Data Structures · Unit steps on a grid: BFS, and the first arrival is the answer.
Algorithms & Data Structures · An undo log per open transaction: rollback replays it, commit hands it to the parent.
Algorithms & Data Structures · A tree of nodes keyed by path segment — the OOD-style prompt where the implementation is the test.
Algorithms & Data Structures · A queue of admitted timestamps per key: evict what aged out, admit while under the limit.
Nearest Bathroom for Every Desk
Algorithms & Data Structures · Seed the queue with every bathroom and expand once — one BFS for the whole floor, not one per desk.
Algorithms & Data Structures · One pass and two remembered indexes — the last person and the last cake seen.
Algorithms & Data Structures · Nearest-cake greedy is wrong; with both lists sorted, an optimal matching never crosses, so a 2-D DP finds it.
Algorithms & Data Structures · Courses run in waves, and a wave takes as long as its slowest course.
Tree Height After Deletions II
Algorithms & Data Structures · Delete exactly the non-root nodes whose own subtree is k or more deep — one post-order pass, no DP.
Algorithms & Data Structures · Topological order with a 26-bit mask per node: inherited = AND of the parents, final = (inherited OR allow) AND NOT disallow.
Algorithms & Data Structures · BFS over an implicit graph, fetching each page exactly once.
Algorithms & Data Structures · Store one predecessor per page, not a path per queue entry, and walk it back from the target.
Algorithms & Data Structures · A BFS that keeps going after the target is gone — and the thread-safety story that comes with it.
Dropped Requests Under Two Rules
Algorithms & Data Structures · One queue of accepted timestamps per rule; dropped requests never enter either.
Algorithms & Data Structures · Per-client (tokens, last seen), a tier config read on every call, and an explicit fallback for clients with no valid tier.
Algorithms & Data Structures · Timestamps arrive in order, so each type's list is already sorted and a count is two binary searches.
Algorithms & Data Structures · One register, a dictionary of recorded bodies, and a mode flag that says whether a line runs or is being stored.
Algorithms & Data Structures · A heap of entries with lazy deletion: a task added twice has two entries, and the stale one is skipped on the way out.
Key-Value Store With Prefix Scan
Algorithms & Data Structures · A hash map for the point operations and a sorted key list for the scan — agree the smallest version, then extend.
Algorithms & Data Structures · Two pointers per run: find where the run ends, reverse it in place, carry on from there.
Algorithms & Data Structures · Turn each match into a clipped line range, merge ranges that touch, and print a separator between the groups left.
Algorithms & Data Structures · Recursive descent with one cursor: a value function that dispatches on the next character, and a parser per kind.
Document Store With Boolean Queries
Algorithms & Data Structures · An inverted index plus a tiny expression parser whose values are sets of document ids.
Does This Connect Four Move Win?
Algorithms & Data Structures · Only the four lines through the last move can have changed, so count outward in each direction from it.
Algorithms & Data Structures · Count the pieces, then check who has a line: X leads by one if X won, counts are equal if O won, and both cannot win.
Top K Search Terms, One Vote per User
Algorithms & Data Structures · Dedupe (user, term) pairs before counting, then sort by count with the term as the tie-break.
Top K Selling Books After Each Sale
Algorithms & Data Structures · Totals in a map; the top K is recomputed from the map on each update, or kept in a bounded structure when K is small and the catalogue huge.
Algorithms & Data Structures · Dutch national flag with three pointers, using only getColor and swap — one pass, no counting.
Algorithms & Data Structures · A course may start once any one prerequisite is done: swap the max for a min and relax in topological order.
Algorithms & Data Structures · A deleted node hands its children to its nearest surviving ancestor, so it simply adds no level.
Most Credits With at Most K Classes
Algorithms & Data Structures · Weighted interval scheduling with a count budget: sort by end, binary-search the compatible predecessor, add a dimension for the cap.
Algorithms & Data Structures · Meeting rooms with stations: a bus is reusable only where it arrived, so keep the idle buses per station.
Filter With a Dynamic Blacklist
Algorithms & Data Structures · Emitted items are final; held items wait in publish order and are re-checked whenever a word is unblocked.
Is the Graph Three-Colourable?
Algorithms & Data Structures · Backtracking over the vertices: try each colour not used by a coloured neighbour, undo on failure.
Fewest Coins When Change Is Given
Algorithms & Data Structures · Overpaying can save coins: minimise coins handed over plus coins handed back, over every payment up to one large coin above the price.
Document Coverage: The Shortest Window
Algorithms & Data Structures · Minimum window over tokens: expand until every term is covered, shrink while it stays covered, keep the shortest.
Pick the Query Type That Maximises Revenue
Algorithms & Data Structures · Committing to one type, you run it floor(k / duration) times; score every type and keep the best, earliest on ties.
Reach a Target With +2, Double and Halve
Algorithms & Data Structures · Any sequence counts, so think constructively: +2 keeps parity, doubling then +2s then halving shifts it, and halving is how you get smaller.
Drop and Remove Runs in a Grid
Algorithms & Data Structures · Mark every horizontal and vertical run of three or more, clear them all at once, let columns fall, and repeat until nothing is marked.
Algorithms & Data Structures · Kahn's queue over course objects; a failed attempt goes to the back of the queue and its dependants stay locked until it passes.
Algorithms & Data Structures · A failure is explained if something it depends on, transitively, failed first; the unexplained failures are the root causes.
Algorithms & Data Structures · A recursive-descent parser: a command's operand is either an integer or a parenthesised sub-program evaluated from zero.
Count the Nodes of a Tree by Messages
Algorithms & Data Structures · A node asks every neighbour except the one that asked it, sums the replies plus one, and remembers answers so duplicates are harmless.
Algorithms & Data Structures · Pre-order with explicit end-of-word marks and parentheses around children; parsing it back is a recursive descent.
Pre-Order Traversal Skipping Marked Nodes
Algorithms & Data Structures · A pre-order walk with a stack; a marked node is dropped before its children are pushed, so its whole subtree disappears.
Delete a Node From a Forest Stored as a Parent Array
Algorithms & Data Structures · Children of the deleted node are re-parented to its parent; a deleted root's children become roots.
Rewrite Two Complete Trees With Subtree Sums
Algorithms & Data Structures · In array form the children of i are 2i + 1 and 2i + 2, so merge by index and accumulate sums from the last index down.
Algorithms & Data Structures · A queue with an index pointer, a visited set marked on enqueue, neighbours in the order given.
Algorithms & Data Structures · Split in half, sort each half, merge with two indices — stable, O(n log n), and the merge is the whole interview.
Algorithms & Data Structures · A priority queue of tentative distances; a node's distance is final the first time it is popped.
Algorithms & Data Structures · Allows flow down from every ancestor and a disallow stays local: OR the parents' allow sets in topological order, then subtract the node's own disallow.
Algorithms & Data Structures · Both allows and denies flow down the DAG as letter sets; a node's letters are its inherited allows minus its inherited denies.
Algorithms & Data Structures · Deleting a node takes its subtree: walk down from the root, never entering a deleted node, and keep the deepest level reached.
Algorithms & Data Structures · When nodes within the limit must stay, the only cuts that can be made are the first nodes past it — and each is a separate cut.
Algorithms & Data Structures · One cut per root branch that is too deep, placed at the deepest node above all of that branch's offending nodes.
Prerequisite Route to a Target Course
Algorithms & Data Structures · Collect the courses the target depends on, then order just those with a smallest-first topological sort; a cycle among them means no route.
Repeated Lookups in a Sorted Array
Algorithms & Data Structures · Many queries against one sorted array: record each value's first index once and answer every query from that, never searching twice.
Algorithms & Data Structures · Many patterns, one text: a trie of the recipes with failure links finds every recipe in a single pass over the ingredients.
Algorithms & Data Structures · The ingredients arrive once and cannot be stored: the recipe automaton advances one state per element and never looks back.
Algorithms & Data Structures · Two bits flow down the DAG, allowed and denied; a node has access when it inherited an allow and no deny.
Algorithms & Data Structures · Keep the newest m events in arrival order; a query counts over the prefix whose timestamps fit, which is small because m is.
Algorithms & Data Structures · The commands become a prefix grammar: an expression is an integer or (OP expr expr), evaluated by recursive descent over the tokens.
Algorithms & Data Structures · Two sweeps along the hallway — nearest cake on the left, nearest on the right — give every person a distance in one go.
Algorithms & Data Structures · A grid with no empty cells: if there is a person and a cake at all, some pair is adjacent, so the answer is 1 before any search.
Algorithms & Data Structures · One person, every cake: scan the grid once keeping the cake with the smallest Manhattan distance.
Boundary of a Full Binary Tree
Algorithms & Data Structures · With no missing children the two edges are plain spines: walk them and the leaves separately, and count the corners once.
Algorithms & Data Structures · Insertion-ordered tasks with a dependency set each: refuse an edge that would close a cycle, emit the earliest ready task, and copy both structures.
Algorithms & Data Structures · A table that resets to zero on a mismatch, so the answer is the largest cell rather than the corner, and one row of it is enough.
Algorithms & Data Structures · Kahn's algorithm with a min-heap in place of the queue: in-degrees, a frontier of ready nodes, and an empty result when a node never becomes ready.
Algorithms & Data Structures · Iterate the digit-square sum until a value repeats; the loop is the path from that value's first visit, and a happy number's loop is just [1].
Algorithms & Data Structures · One memo shared across every start: each value on a walk inherits the answer of where the walk stopped, so no value is followed twice.
Asked on LeetCode
222 questions · all time
- Happy NumbereasyHash TableMathTwo PointersFloyd's Cycle Finding Algorithmfrequency 100.0
- Parallel Courses IIIhardArrayDynamic ProgrammingGraph TheoryTopological Sort+1frequency 99.2
- Course Schedule IImediumDepth-First SearchBreadth-First SearchGraph TheoryTopological Sortfrequency 96.7
- Design In-Memory File SystemhardHash TableStringDesignTrie+1frequency 96.7
- Minimum Window SubstringhardHash TableStringSliding Windowfrequency 91.8
- Word Search IIhardArrayStringBacktrackingTrie+1frequency 89.6
- Calculate Amount Paid in TaxeseasyArraySimulationfrequency 85.6
- Painting the WallshardArrayDynamic Programmingfrequency 85.6
- Step-By-Step Directions From a Binary Tree Node to AnothermediumStringTreeDepth-First SearchBinary Tree+2frequency 85.6
- Throne InheritancemediumHash TableTreeDepth-First SearchDesignfrequency 85.6
- Trapping Rain WaterhardArrayTwo PointersDynamic ProgrammingStack+1frequency 85.6
- Find All Anagrams in a StringmediumHash TableStringSliding Windowfrequency 82.6
- Maximum Profit in Job SchedulinghardArrayBinary SearchDynamic ProgrammingSortingfrequency 82.6
- Count Vowel Substrings of a StringeasyHash TableStringfrequency 80.9
- Maximum Number of Upgradable ServersmediumArrayMathBinary Searchfrequency 77.1
- String TransformationhardMathStringDynamic ProgrammingString Matchingfrequency 74.9
- Course SchedulemediumDepth-First SearchBreadth-First SearchGraph TheoryTopological Sort+1frequency 72.5
- Find the Maximum Length of a Good Subsequence ImediumArrayHash TableDynamic Programmingfrequency 72.5
- Minimum Array Length After Pair RemovalsmediumArrayHash TableTwo PointersBinary Search+2frequency 72.5
- Find the Maximum Length of a Good Subsequence IIhardArrayHash TableDynamic Programmingfrequency 69.8
- Merge k Sorted ListshardLinked ListDivide and ConquerHeap (Priority Queue)Merge Sort+1frequency 69.8
- Minimum Absolute Difference Between Two ValueseasyArrayEnumerationfrequency 69.8
- Number of Ways to Form a Target String Given a DictionaryhardArrayStringDynamic Programmingfrequency 69.8
- Parallel CoursesmediumGraph TheoryTopological SortDirected Acyclic Graphfrequency 69.8
- Max Area of IslandmediumArrayDepth-First SearchBreadth-First SearchUnion-Find+1frequency 66.7
- Simplify PathmediumStringStackfrequency 66.7
- Top K Frequent ElementsmediumArrayHash TableDivide and ConquerSorting+4frequency 66.7
- Two SumeasyArrayHash Tablefrequency 66.7
- Basic CalculatorhardMathStringStackRecursionfrequency 63.2
- Boundary of Binary TreemediumTreeDepth-First SearchBinary Treefrequency 63.2
- Maximum Number of Events That Can Be AttendedmediumArrayGreedySortingHeap (Priority Queue)frequency 63.2
- Shortest Word DistanceeasyArrayStringfrequency 63.2
- Time Based Key-Value StoremediumHash TableStringBinary SearchDesignfrequency 63.2
- Copy List with Random PointermediumHash TableLinked Listfrequency 59.1
- Design Add and Search Words Data StructuremediumStringDepth-First SearchDesignTriefrequency 59.1
- LRU CachemediumHash TableLinked ListDesignDoubly-Linked Listfrequency 59.1
- Maximum Number of Events That Can Be Attended IIhardArrayBinary SearchDynamic ProgrammingSortingfrequency 59.1
- Merge Two Sorted ListseasyLinked ListRecursionfrequency 59.1
- Remove Sub-Folders from the FilesystemmediumArrayStringDepth-First SearchTriefrequency 59.1
- Task SchedulermediumArrayHash TableGreedySorting+2frequency 59.1
- Web CrawlermediumStringDepth-First SearchBreadth-First SearchInteractivefrequency 59.1
- Web Crawler MultithreadedmediumDepth-First SearchBreadth-First SearchConcurrencyfrequency 59.1
- Design HashMapeasyArrayHash TableLinked ListDesign+1frequency 54.0
- Design Hit CountermediumArrayBinary SearchDesignQueue+1frequency 54.0
- Design Log Storage SystemmediumHash TableStringDesignOrdered Setfrequency 54.0
- Insert Delete GetRandom O(1)mediumArrayHash TableMathDesign+1frequency 54.0
- Maximize Distance to Closest PersonmediumArrayfrequency 54.0
- Min StackmediumStackDesignfrequency 54.0
- Single Element in a Sorted ArraymediumArrayBinary Searchfrequency 54.0
- Snapshot ArraymediumArrayHash TableBinary SearchDesign+1frequency 54.0