Snapchat Software Engineer Coding & Algorithms Interview Questions
Practice 39 real Coding & Algorithms interview questions for Software Engineer roles at Snapchat.

"I got asked a hardcore MCM DP question and I saw it on PracHub as well. Solved that question in 5 minutes. Without PracHub I doubt I could solve it in 5 hours. Though somehow didn't get hired, perhaps I guess I solved it too fast? /s"

"Believe me i'm a student here jn US. Recently interviewed for MSFT. They asked me exact question from PracHub. I saw it the night before and ignored it cause why waste time on random sites. I legit wanna go back and redo this whole thing if I had chance. Not saying will work for everyone but there is certainly some merit to that website. And i'm gonna use it in future prep from now on like lc tagged"

"10 years of experience but never worked at a top company. PracHub's senior-level questions helped me break into FAANG at 35. Age is just a number."

"I was skeptical about the 'real questions' claim, so I put it to the test. I searched for the exact question I got grilled on at my last Meta onsite... and it was right there. Word for word."

"Got a Google recruiter call on Monday, interview on Friday. Crammed PracHub for 4 days. Passed every round. This platform is a miracle worker."

"I've used LC, Glassdoor, and random Discords. Nothing comes close to the accuracy here. The questions are actually current — that's what got me. Felt like I had a cheat sheet during the interview."

"The solution quality is insane. It covers approach, edge cases, time complexity, follow-ups. Nothing else comes close."

"Legit the only resource you need. TC went from 180k -> 350k. Just memorize the top 50 for your target company and you're golden."

"PracHub Premium for one month cost me the price of two coffees a week. It landed me a $280K+ starting offer."

"Literally just signed a $600k offer. I only had 2 weeks to prep, so I focused entirely on the company-tagged lists here. If you're targeting L5+, don't overthink it."

"Coaches and bootcamp prep courses cost around $200-300 but PracHub Premium is actually less than a Netflix subscription. And it landed me a $178K offer."

"I honestly don't know how you guys gather so many real interview questions. It's almost scary. I walked into my Amazon loop and recognized 3 out of 4 problems from your database."

"Discovered PracHub 10 days before my interview. By day 5, I stopped being nervous. By interview day, I was actually excited to show what I knew."

"I recently cleared Uber interviews (strong hire in the design round) and all the questions were present in prachub."
"The search is what sold me. I typed in a really niche DP problem I got asked last year and it actually came up, full breakdown and everything. These guys are clearly updating it constantly."
Maximize correct guesses in a hat line puzzle
This question evaluates logical reasoning about information constraints, group strategy design, and combinatorial encoding in the Coding & Algorithms ...
Implement a search autocomplete suggestion service
This question evaluates proficiency in designing efficient prefix-matching and ranking mechanisms, including management of incremental query state and...
Find Maximum Island Perimeter
This question evaluates grid traversal and connected-component analysis skills, focusing on reasoning about perimeters and boundary conditions in bina...
Implement LRU cache and prime products array
You are given two separate coding tasks. Task 1: Implement an LRU cache Implement an in-memory cache with a fixed capacity that evicts the least recen...
Implement a size-bounded LRU cache
This question evaluates a candidate's ability to design and implement efficient data structures for capacity-bound caching, focusing on handling varia...
Implement a custom list with iterator and map
This question evaluates proficiency in data structures and generic collection implementation, specifically list operations, iterator semantics, and hi...
Solve a two-jug measuring problem
You are given two jugs with capacities x and y liters and an unlimited water source. You may perform these operations: fill a jug, empty a jug, or pou...
Find minimum-latency path across dependent services
This question evaluates understanding of graph algorithms and shortest-path computation on weighted directed graphs, including handling cycles, multip...
Compute sliding window median
Question LeetCode 480. Sliding Window Median: Given an array nums and an integer k, find the median of each sliding window of size k as the window mov...
Implement XML tokenizer and parser with operations
Implement XML tokenizer and parser with operations You are given either (a) a raw XML-like string such as <catalog><book><author>Gambardella, Matthew<...
Implement a Leaky Bucket Limiter
This question evaluates understanding of rate-limiting algorithms (leaky bucket), concurrent programming, time-based state management, and thread-safe...
Determine escape path with blockers and spreading fire
This question evaluates graph traversal and grid-based pathfinding skills, including connectivity analysis, obstacle handling, and reasoning about tim...
Solve Three Coding Problems
This set of problems evaluates competencies in streaming data handling and incremental aggregation, time-dependent grid traversal and reachability und...
Implement a thread-safe rate limiter
Design and implement a per-user API rate limiter. Requirements: - Method: boolean allow(String userId, long nowMillis) returns whether the request is ...
Find max node-value range across components
This question evaluates understanding of undirected graph connectivity and component-wise aggregation, specifically the ability to identify connected ...
Check whether an integer is a power of two
This question evaluates proficiency in bit-level reasoning and integer arithmetic, specifically understanding binary representations and the propertie...
Solve rotating-lock BFS with blockers
You are given a 4-digit lock starting at "0000". In one move, you may pick a single position and rotate it +1 or −1 with wrap-around (0→9 on −1, 9→0 o...
Compute maximum perimeter among islands
This question evaluates a candidate's proficiency with grid traversal, connected-component identification, and perimeter computation in binary matrice...
Implement a recent-use eviction cache
This question evaluates a candidate's ability to design and implement a fixed-capacity key-value cache with a recent-use eviction policy, emphasizing ...
Find top co-purchased products
You receive purchase logs where each order is represented as an integer array of product IDs bought together in a single transaction. Implement a func...