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."
Adjust YouTube Ad Scores Using Mixed-Effects Linear Regression
Scenario - 100 reviewers each rate the same 100 YouTube ads on a 1–10 scale. - Ratings may be systematically higher or lower for some reviewers (lenie...
Maximize coins collected by tokens jumping +3
You are given a single-player board game represented by a string board of length N (1 ≤ N ≤ 100). Each character is one of: - '.': empty cell - 'T': a...
Solve graph and linked list tasks
You are given three independent coding tasks. 1) Determine which items can be produced (dependency graph) You have: - recipes: a list of n item names....
Answer product, collaboration, and prioritization scenarios
Behavioral / Leadership prompts Answer the following (you can assume a 35–40 minute behavioral interview): 1. Intro (5 minutes): Walk through your bac...
Test a coefficient and explain t-distribution
In OLS, test whether feature j is relevant. a) State H0: β_j = 0 versus H1: β_j ≠ 0 and construct the t‑statistic t_j = b̂_j / se(b̂_j), giving the ex...
Build and evaluate bad-link classifier
You have 1,000 URLs labeled as bad or good and a much larger unlabeled pool, with bad links rare. Design features and train a logistic regression. Exp...
Define and sample a truncated normal
Define the truncated normal Z | a < Z < b for Z ~ N(0,1): write the normalized pdf and cdf. Then design efficient samplers for three cases: (i) a = 1,...
Diagnose and fix flawed model fit
Fixing a Churn Classifier: Encoding, Imbalance, Evaluation, and Fairness Context You inherit a binary classifier that predicts churn=1. The current im...
Explain a favorite model end-to-end
Predictive Model Deep-Dive (End-to-End) Pick one predictive model you know deeply (e.g., logistic regression, gradient-boosted trees, transformer clas...
Analyze time series and design validation experiment
Daily Policy-Violation Reports: Robust Decomposition, Break Detection, Effect Sizing, Forecasting, and Causality You are given a daily time series Y_t...
Find minimum threshold enabling grid path
Problem You are given an m x n integer grid grid. You start at the top-left cell (0, 0) and want to reach the bottom-right cell (m-1, n-1). You may mo...
Validate parent array forms a tree
Problem You are given an integer array parent of length n describing a directed parent pointer for each node i (nodes are labeled 0..n-1). - parent[i]...
Project Leadership Deep Dive
Behavioral & Leadership (PM Onsite): End-to-End Project Walkthrough Context: You are interviewing for a Product Manager role in a large-scale tech env...
Design log management with auto-deletion
Design a Bounded Log Management System with O(1) Victim Selection Context You are designing an in-memory log buffer that ingests log entries and must ...
Understand Simpson's Paradox with Simple Examples
Scenario You are a data scientist advising a product team on statistical analysis and experimental design. Tasks 1) Simpson’s paradox - Explain Simpso...
Design quota enforcement for high concurrency
System Design: Quota Enforcement Service at Very High QPS Context You are designing a multi-tenant quota and rate-limiting service used by many backen...
Design distributed transactions protocol
System Design: Distributed Transactions Across Multiple Services Context You must design a distributed transactions protocol to coordinate updates acr...
Solve three coding interview problems
You are given three independent coding questions. 1) Decode an encoded string Given an encoded string s, decode it using the following rule: - Pattern...
Solve checksum and dependency debugging tasks
The online assessment contained two coding tasks. 1. Build a validation string from checksums You are given: - a lowercase string s - a validation str...
Compute sum over consecutive-step subarrays
Given an integer array a of length n, call a subarray a[l..r] good if either: - it is strictly increasing by 1 at every step: a[i+1] - a[i] = 1 for al...