Google Coding & Algorithms Interview Questions
Practice 461 real Google interview questions for 2026 — Google interview questions that cover Coding & Algorithms, Behavioral & Leadership, Analytics & Experimentation, Machine Learning, and Statistics & Math across Software Engineer, Data Scientist, Machine Learning Engineer, and Product Manager roles. Real questions from actual interviews with detailed solutions tailored for interview preparation and role-specific skill building. Expect coding-heavy rounds and design-focused conversations first, then analytics and behavioral assessments that probe impact, collaboration, and "Googleyness." For Software Engineer candidates this collection emphasizes string and substring matching, memory-efficient undo/redo and batched state operations, graph/time-series connectivity and queue problems, plus scaling for huge inputs and behavioral scenarios about teamwork and ambiguity. Data Scientist questions repeat themes in causal and unbiased upgrade experiments, bootstrap inference and percentile estimation from buckets, sampling and subarray algorithms, and sequence analytics. Machine Learning Engineer prompts focus on LLM lifecycle and trade-offs, recommendation and cold-start ranking strategies, weighted sampling and search, and building chatbots over mixed structured/unstructured data. Product Manager items center on Google Maps/Android product ideation, real-time data throughput and estimation, market sizing, and explaining technical tradeoffs to non-technical stakeholders. Use targeted coding practice, mock design interviews, experiment design drills, and concise STAR stories for best results.

"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."
Build a bigram next-word predictor with weighted sampling
You are given a training set of token sequences (sentences), for example: ` [["a","b","c"], ["a","s","d"]] ` 1) Train a simple next-word prediction m...
Describe conflict resolution and stakeholder management
Behavioral Prompt Describe a time when you faced a serious conflict at work (e.g., disagreement on technical direction, priorities, scope, or executio...
Design tests to measure latency impact
Question You are a Data Scientist supporting a large consumer product (e.g., YouTube). Engineering ships a change intended to reduce client-side / vid...
Design a real-time recommendation system
You are asked to design a real-time recommendation system for a large-scale consumer product (for example, recommending items or content to users in a...
Min boards to cover roof holes
You are given an m x n binary grid roof representing a roof surface: - roof[i][j] = 1 means the cell is intact. - roof[i][j] = 0 means the cell is a h...
Find cheapest common ancestor in a tree
Coding You are given a rooted tree where each node has: - an integer price - a pointer to its parent (root has parent = null) - a list of children Giv...
How do you handle workplace conflict scenarios?
Answer the following conflict-focused behavioral questions. Use concrete examples from your experience. 1. Conflict with a peer: Describe a time you h...
Implement iterator merging lists with filtering
Problem Implement an iterator (or generator) that iterates over two input sequences: - favorites: a list of item IDs (or objects with an id field) - p...
Find shortest subarray with at least k distinct
Problem Given an integer array nums and an integer k, find the length of the shortest contiguous subarray that contains at least k distinct integers. ...
Design a multi-timer using single underlying timer
You are given a Timer class that has access to a single underlying system timer API that can only keep one active timer at a time. Underlying single-t...
Design a fraud detection system
Scenario You are designing an end-to-end fraud detection system for an online platform (e.g., e-commerce marketplace, payments, account signup, or ad ...
Compute distance-sum from every tree node
Problem You are given an undirected tree with n nodes labeled 0..n-1 and a list of n-1 edges. The tree is connected and contains no cycles. For each n...
Compute minimal transfers to settle group expenses
Problem A group of friends go on a trip and share expenses. Each expense is recorded as an object: - payer (string): who paid the full amount - amount...
Compute minimum meeting rooms on circular day
Problem You are given a list of meetings scheduled within a 24-hour day. Time is cyclic: after 23:59 the next minute is 00:00. Each meeting is represe...
Simulate meeting-room bookings and return busiest room
You manage n meeting rooms labeled 0..n-1 and receive a list of meetings. Each meeting is an interval [start, end) with start < end. Process meetings ...
Prove OLS invariance to linear transforms
You fit Model 1: y ~ X1 + X2. You also fit Model 2 using Z = [X1 − X2, X1 + X2] = X T where T = [[1,1], [−1,1]] (2×2, invertible). a) Prove that OLS p...
Design a scalable video platform database
Design the relational database for a YouTube-like video company. Deliverables: 1) list the core tables with key columns, types, and constraints (users...
Compute shortest delivery route with dangerous stops
Delivery Route Planning With Dangerous Stops You are given delivery stops (nodes) and a set of routes. Each route is a list of stops, and you can trav...
Design an Unbiased Upgrade Experiment
The Google app releases a new Android version. Every Android user sees a pop-up encouraging installation, but installation is voluntary: some users up...
Find best-matching binary pattern with wildcards
Problem You are building a rule engine that maps an input binary string to a configuration value. You are given a list of rules in priority order (ear...