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."
Compute decayed power levels in a graph
You are given an unweighted graph representing a network of wires. - The graph has N nodes labeled 0..N-1 and M edges (each edge is a bidirectional wi...
Build a next-word frequency predictor
You are given a sequence of tokens (words) representing a corpus, e.g.: tokens = [w0, w1, w2, ..., wK-1] You need to build a next-word predictor that ...
Compute minimum servers for cyclic tasks
You are given a list of tasks running on servers. Each task is represented as a pair (start, duration): - start is the start time in minutes from the ...
Compute minimum number of rooms needed
Problem You are given a list of meetings, each with a start time and end time. A single room can host only one meeting at a time. Two meetings overlap...
Implement text wrapping, waitlist, and intervals
Answer the following coding questions. 1) Text wrapping: count lines in a fixed-width document You are rendering text into a document where each line ...
Find shortest relationship path using BFS
Problem You are given a set of pairwise relationships between entities (people/services/etc.). Treat each relationship as an undirected edge in a grap...
Design structure for insert and k-th largest
Design a class that supports two operations over a multiset of integers (duplicates allowed): - insert(num: int) -> void: add num to the data structur...
Design a key-value store
System Design: Scalable Key–Value Store with Range Scans You are asked to design a distributed key–value (KV) store that supports the following operat...
Design anomaly detection and response platform
Design an AI-Driven OS Snapshot Anomaly Detection Service Context You are designing a cloud service that ingests operating system (OS) snapshots from ...
Design high-throughput event subscription system
Design an Event Ingestion and Subscription System Context You are asked to design a horizontally scalable platform where producers send high-volume ev...
Design A/B testing platform
Design an A/B Testing Platform (Architecture + Experiment Science) Context You are designing an A/B testing platform for a large-scale consumer web/mo...
Handle teamwork, prioritization, and feedback scenarios
Answer the following behavioral questions (use specific examples from your experience): 1. Describe a complex project you worked on. 2. Tell me about ...
Describe a challenging project and how you succeeded
Behavioral prompts Answer the following using a structured format (e.g., STAR: Situation, Task, Action, Result), focusing on your contributions, trade...
Return top-k subset sums in descending order
Problem You are given n distinct objects, each with a non-negative integer weight. A subset can be any selection of these objects (including the empty...
Design ML system for self-driving perception
You are interviewing for a Senior Machine Learning Engineer role on a self-driving car team. They ask you to design a machine learning system for obst...
Detect and remove matched words in a char stream
You are processing a stream of characters (arriving one-by-one). You are also given a list of target words. Each time a new character arrives, it is a...
Minimize travel time with optional meeting point
You are given a connected graph representing travel between locations. - Each node is a location. - Each edge has a non-negative travel time (if your ...
Find largest digit-sharing subset
You are given an array of N integers. Each integer has exactly two decimal digits (i.e., each element is between 10 and 99 inclusive). You want to cho...
Find numbers with exactly two sum-of-squares forms
Given an integer \(n\), find all integers \(s\) such that \(0 \le s < n\) and \(s\) can be expressed as a sum of two squares in exactly two distinct u...
Estimate Population Mean and Conversion Rate Accurately
Statistical Inference: Hypothesis Tests, Confidence Intervals, Sampling Design, and Truncated Normal Estimation Context You are evaluating a set of pr...