Snapchat Software Engineer Interview Questions
Preparing for Snapchat Software Engineer interview questions means getting ready for a consumer-product, mobile-first evaluation that emphasizes clean, production-ready code, speed on algorithmic problems, and product-aware system design. Expect an initial recruiter conversation followed by a timed technical screen (live coding) and a final loop with multiple coding rounds plus a system-design session; behavioral fit is usually assessed throughout rather than in
Count ways to decode digit string
You are given a string s consisting of digits '0' to '9'. The string encodes a message using the following mapping: - '1' → A, '2' → B, ..., '26' → Z....
Compute longest increasing path in matrix
You are given an m x n grid (matrix) of integers grid, where m >= 1 and n >= 1. A path in the matrix is a sequence of cells where: - You may move from...
Implement sin(x) with precision constraints
Coding Question: Implement sin(x) Implement a function that returns an approximation of the trigonometric sine function. Function signature - Input: a...
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...
Design backend for Uber-like ride-hailing service
Design the backend system for a ride-hailing platform similar to Uber. Focus on: - How ride requests are placed and matched with drivers ("order takin...
How do you decide with limited information?
Behavioral Question Describe a time you had to make an important decision with incomplete, ambiguous, or conflicting information. Include: - What deci...
Solve Open the Lock BFS
Question LeetCode 752. Open the Lock – Given an initial lock state "0000", a target combination, and a list of deadend combinations that cannot be use...
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...
Implement XML tokenizer and parser with operations
You are given either (a) a raw XML-like string such as <catalog><book><author>Gambardella, Matthew</author></book></catalog> or (b) its tokenized form...
Design ride-hailing and price alert systems
During a system design interview, you are asked two related but separate questions: Part 1: Design a ride-hailing service (similar to Uber) Design the...
Compute maximum perimeter among islands
Problem You are given an m x n binary grid grid where: - grid[r][c] = 1 represents land - grid[r][c] = 0 represents water An island is a maximal set o...
Explain median vs mean for L1/L2
Median vs Mean Under L1 and L2, and the 2D Extension Task Explain, with intuition and a brief derivation, why: - In 1D, the median minimizes the sum o...
Design a streaming ads system
System Design: Ad-Insertion Platform for Live and On-Demand Video Context You are designing an end-to-end ad-insertion platform for a consumer video s...
Describe improving workflow and challenges
Behavioral: Improving a Team's Development Workflow You are a software engineer in a technical screen. Answer using a concise, structured story (e.g.,...
Handle cards, islands, Trie, median
Question LeetCode 914. X of a Kind in a Deck of Cards LeetCode 694. Number of Distinct Islands LeetCode 208. Implement Trie (Prefix Tree) LeetCode 295...
Implement binary search for boundary index
Given a sorted integer array nums (length n) and an integer target t, return the index of the first element in nums that is greater than or equal to t...
Compute islands in a binary grid
You are given an m-by-n grid of characters where '1' represents land and '0' represents water. Count the number of connected land masses (islands) usi...
Design product co-occurrence analytics API
Design RESTful APIs for Co‑Purchase Analytics Context You are designing backend APIs to power a "related products" module based on co‑purchase behavio...
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...
Parallelize the lock BFS safely
Parallelizing BFS for the Rotating-Lock Problem Context You are given the classic rotating-lock problem (e.g., a 4-wheel lock from "0000" to a target ...