Snapchat Interview Questions
Master your tech interview with our curated database of real questions from top companies.
Monitor Friend-Request System for Quality and Abuse
Friendship +--------------+-------------+---------------------+---------------------+ | requester_id | approver_id | request_ts | approval_ts...
Compute User Group Stories and Aggregate Story Engagement
user_story_engagement +---------+----------+------------+------------+-------+-------+ | user_id | story_id | story_type | created_at | views | likes ...
Build Predictive Model for Product Metric: Steps Explained
Scenario You are interviewing for a Data Scientist role and are asked to design a predictive model for a key product metric in a consumer app (e.g., p...
Determine Optimal Energy Project for 10% ROI Target
Investment Selection and ROI Sizing for a New Renewable Project Scenario An energy company is evaluating investments in new renewable projects and mus...
Design A/B Test for New Recommendation Algorithm Launch
A/B Test Design: New Recommendation Algorithm Objective Design a rigorous A/B test to estimate the incremental impact of a new recommendation algorith...
Optimize Churn Prediction: Feature Engineering and Model Selection
Weekly Churn Prediction (10M users): Feature Engineering, Model Choice, Explainability, and Debugging Scenario You own a weekly churn-prediction pipel...
How to Update Bayesian Model for Concept Drift?
Beta–Binomial CTR Model: Prior, Likelihood, Posterior, Smoothing, Intervals, and Drift Context You are discussing statistical foundations for a Bayesi...
Compute User Retention and Analyze Event Data
user_events +---------+---------------------+------------+-------+ | user_id | event_time | event_type | page | +---------+-----------------...
Design A/B Tests for Banner Ad and Group-Story Feature
Product Decision Cases: Banner Ad and Group-Story Feature Context You are evaluating two product decisions in a consumer social app: - Adding a new ba...
Influence Partner Teams Without Formal Authority: Strategies Explained
Behavioral & Leadership: Cross-Functional Influence, Feedback, and Prioritization Context You are interviewing for a Data Scientist role. Imagine a cr...
Calculate Posterior Probability Using Bayes' Theorem Example
Bayes' Theorem Toy Problem: Spam-Flag Example Context You are evaluating a simple classifier that flags messages as spam. Based on historical data, yo...
Influence Cross-Functional Teams Without Formal Authority
Behavioral Interview: Product Data Science (Cross-Functional Influence) Scenario Cross-functional, first-round conversations focused on Amazon-style b...
Determine blockage and parse HTML tokens
Question Given a set of 2-D circular stones, determine whether they can completely block the width of a river. You may define the input format. Given ...
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...
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...
Design a harmful content detection system
System Design: End-to-End Harmful Content Detection (Multilingual, Multimodal) Context You are designing a safety system for a large, mobile-first, ep...
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...
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...
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....
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...