0 day streak

Snap coding interview questions

Big techProduct Global

Ranked by how often candidates report them. Each opens in the editor with hidden tests, an animated walkthrough and solutions in four languages; a question you solve once counts for every company that asks it.

0%ready
Your level: practise every reported question.
ProgressTitleDifficultyTopicHow often hereAlso asked atNext step
Number of IslandsConnected Components Medium Graphs Google, Amazon, Microsoft +114 Solve
LRU CacheLinked Lists Medium Design Data Structures Google, Amazon, Microsoft +140 Solve
Escape the Spreading FireMulti source BFS Hard Graphs Uber Solve
Open the LockBFS for shortest path Medium Graphs LinkedIn, eBay, Palo Alto Networks +7 Solve
Merge k Sorted ListsMerge K Sorted Hard Heaps Google, Amazon, Microsoft +59 Solve
Design Hit CounterQueue / Circular Buffer Medium Design Data Structures Google, Apple, Uber +21 Solve
Word LadderBFS for shortest path Hard Graphs Google, Amazon, Microsoft +39 Solve
Meeting Rooms IILine Sweep Medium Intervals Google, Amazon, Meta +50 Solve
Split Array Largest SumBinary Search on Answer Space Hard Binary Search Amazon, Uber, Pinterest +16 Solve
Capacity To Ship Packages Within D DaysBinary Search on Answer Space Medium Binary Search Amazon, Expedia Group, Agoda +7 Solve
Bus RoutesBFS for shortest path Hard Graphs Amazon, Uber, Bloomberg +7 Solve
Minimum Window SubstringSliding Window · Hash Map Hard Arrays & Hashing Google, Amazon, Microsoft +37 Solve
Number of Distinct IslandsMatrix Graphs Medium Graphs TikTok (ByteDance), Coupang, Anduril +5 Solve
Basic Calculator IIStack Basics Medium Stack Meta, Apple, Airbnb +18 Solve
Design Log Storage SystemPre-processing + tradeoffs Medium Design Data Structures Snowflake, Salesforce Solve
Making A Large IslandConnected Components Hard Graphs Amazon, Meta, Uber +9 Solve
Water and Jug ProblemMath / Number Theory Medium Arrays & Hashing Lyft, BNY, PhonePe +3 Solve
First Unique Character in a StringHashing Easy Arrays & Hashing Databricks, Nutanix, Zillow +28 Solve
Sliding Window MedianAdvanced Hard Heaps Microsoft, Meta, Spotify +5 Solve
Implement Trie (Prefix Tree)Basics Medium Tries Google, Microsoft, Meta +25 Solve
Find Median from Data StreamAdvanced Hard Heaps Google, Amazon, Apple +47 Solve
Shortest Path in a Grid with Obstacles EliminationBFS for shortest path Hard Graphs Databricks, Bloomberg, Pinterest +6 Solve
Best Time to Buy and Sell Stock IIIState Machine DP - Stock Problems Hard Dynamic Programming Meta, Nutanix, Robinhood +2 Solve
Reorder ListSlow Fast Pointers Medium Linked List Meta, Expedia Group, Shopee (Sea) +4 Solve
Reaching PointsMath / Number Theory Hard Arrays & Hashing Nvidia, Wayfair, Cloudflare +7 Solve
Number of Submatrices That Sum to TargetPrefix Sum Strategy Hard Arrays & Hashing Samsung Solve
UTF-8 ValidationBasics Medium Bit Manipulation Palantir, Tesla Solve
Cheapest Flights Within K StopsDijkstra Medium Graphs Google, Airbnb, Stripe +13 Solve
Word Break IIChoice per Position Hard Recursion & Backtracking Bloomberg, Booking.com, Dropbox +12 Solve
Course Schedule IITopological Sort Medium Graphs Google, Amazon, Meta +42 Solve
Top K Frequent ElementsComposite comparator Medium Heaps Google, Amazon, Microsoft +53 Solve
Decode Ways1D DP Medium Dynamic Programming Google, Meta, Tesla +21 Solve
Word Search IITrie + Backtracking Hard Tries Google, Amazon, Uber +12 Solve
Basic Calculator IIIStack Basics Hard Stack DoorDash, Tesla, TikTok (ByteDance) +5 Solve
Basic CalculatorStack Basics Hard Stack Amazon, Meta, Snowflake +12 Solve
Combination Sum (repeating elements)Pick / Not-Pick Medium Recursion & Backtracking Airbnb, Pinterest, Dropbox +20 Solve
Reverse Words in a StringDouble Reversal Trick Medium Arrays & Hashing Microsoft, Nvidia, Zillow +38 Solve
Alien DictionaryTopological Sort Hard Graphs Google, Amazon, Microsoft +20 Solve
Game of LifeIn-place Transformations Medium Arrays & Hashing Reddit, Dropbox, Zillow +6 Solve
Binary Tree Vertical Order TraversalViews Medium Trees & BST Meta, DoorDash, Reddit +4 Solve
Valid SudokuHashing Medium Arrays & Hashing Apple, Wayfair, Roblox +6 Solve
Sudoku Solver2D Matrix Backtracking Hard Recursion & Backtracking Microsoft, DoorDash, X (Twitter) +12 Solve
Wildcard MatchingStrings Hard Dynamic Programming Instacart, TikTok (ByteDance), X (Twitter) +11 Solve
One Edit DistanceTwo Pointer Medium Arrays & Hashing Stripe, X (Twitter), Yandex Solve
Remove K DigitsMonotonic Stack Medium Monotonic Stack Amazon, Coupang, Deloitte +7 Solve
Frog Jump1D DP Hard Dynamic Programming Grab, Zillow, Squarepoint Capital +3 Solve
Merge IntervalsBasics Medium Intervals Google, Amazon, Microsoft +107 Solve
Minimum Remove to Make Valid ParenthesesStack Basics Medium Stack Meta, Bloomberg, ServiceNow +4 Solve
Best Meeting PointMatrix Traversal Hard Arrays & Hashing Google, DoorDash, X (Twitter) +1 Solve
Evaluate DivisionConnected Components Medium Graphs Amazon, Apple, Uber +17 Solve
Word Search2D Matrix Backtracking Medium Recursion & Backtracking Google, Microsoft, Meta +36 Solve
LFU CacheLinked Lists Hard Design Data Structures Amazon, Apple, Netflix +37 Solve
Shortest Distance from All BuildingsMulti source BFS Hard Graphs Meta, DoorDash, Waymo +3 Solve
Smallest Range Covering Elements from K ListsMerge K Sorted Hard Heaps Lyft, Arcesium, Workday +2 Solve
Snapshot ArrayBasics Medium Binary Search Google, Apple, Netflix +9 Solve
Text JustificationSimulation Hard Arrays & Hashing Google, Microsoft, LinkedIn +28 Solve
Power of TwoTricks to remember Easy Bit Manipulation Nvidia, Qualcomm, Intel +7 Solve
Check Completeness of a Binary TreeTraversals Medium Trees & BST Lyft, Epic Games, Activision Blizzard +1 Solve
Reverse Linked ListFront Middle Back Pointer Easy Linked List Microsoft, Apple, Bloomberg +81 Solve
Shortest Path in Binary MatrixBFS for shortest path Medium Graphs Google, Meta, Databricks +10 Solve
Course ScheduleTopological Sort Medium Graphs Google, Amazon, Microsoft +42 Solve
Also reported, being added to AlgoRung (5)

Island Perimeter · Encode String with Shortest Length · X of a Kind in a Deck of Cards · Count Unreachable Pairs of Nodes in an Undirected Graph · Bricks Falling When Hit

Questions people ask

What coding questions does Snap ask most?

Number of Islands, LRU Cache, Escape the Spreading Fire, Open the Lock, Merge k Sorted Lists, Design Hit Counter, Word Ladder, Meeting Rooms II.

Which topics come up in Snap coding rounds?

graphs, matrix BFS/DFS, design data structure, strings, intervals, backtracking.

How hard are Snap coding questions?

Of the reported questions, 3 are easy, 32 medium and 26 hard. A 45 to 60 minute live interview where you solve one or two data-structures-and-algorithms problems while explaining your thinking. Interviewers score problem solving, code quality, testing and communication.