Google Coding & Algorithms Interview Questions
Practice 514 real Google interview questions for 2026. Covers Coding & Algorithms, Behavioral & Leadership, Analytics & Experimentation, Machine Learning, and System Design across Software Engineer, Data Scientist, Machine Learning Engineer, Product Manager, and Data Engineer roles — real questions from actual interviews with detailed solutions to accelerate interview preparation. This collection highlights the coding-first bar Google uses: expect heavy algorithmic work, role-related data and ML problems, a Googleyness/leadership round, and level-specific differences in what’s decisive. What’s distinctive: for Software Engineers you’ll see spatial and streaming algorithms, concurrency and async primitives, LLM-foundations and GPU-job scheduling, plus object-design problems like room assignment; Data Scientists are weighted toward causal experiments, funnel and product-metric diagnostics, bootstrap inference, and percentile/sampling algorithms; ML Engineers focus on transformer blocks, recommendation design and ranking cold-starts; PMs get Maps/Android and product-ideation tradeoffs plus throughput and revenue sizing. New-grad and intern tracks emphasize phone screens and virtual onsites; Google L4 typically keeps the loop coding-heavy while Google L5 expects stronger system-design and cross-team leadership signals. Use focused practice, mock interviews, and level-specific stories to prepare.

"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."
Implement piecewise linear interpolation for time-to-empty
Time-to-Empty from a Discharge Curve (Piecewise Linear Interpolation) Implement a function time_to_empty(checkpoints, current_soc) that returns the nu...
Compute violation rate and flag precision in SQL
You are analyzing a Trust & Safety product in BigQuery. Assume 'today' is 2025-09-01 (UTC). Define precise metrics and write SQL to compute them, bein...
U.S. Annual Traffic-Jam Hours Estimation
Estimation Prompt: Annual Hours Lost to Traffic in the United States Estimate the total number of hours that drivers in the United States collectively...
Supermarket Experience Design
Product Design Prompt: Modern Supermarket Experience Pick one focus area for a modern supermarket and go deep: - In-store layout. - Checkout flow. - I...
Reading-Time Estimation for Google Docs
Product Prompt: Reading Time Estimation for Google Docs Design a feature that estimates how long it will take a user to read a Google Docs document an...
Legacy Payroll System Migration Plan
Product and Program Prompt: Legacy Payroll System Migration Plan You are responsible for migrating a legacy payroll system to a new platform in a larg...
Construct connected crop layout and safe paths
This question evaluates constructive grid design and graph-based pathfinding skills, specifically the ability to produce connected labeled regions tha...
Implement sampling, subarray scan, and percentile estimate
This multi-part problem evaluates skills in random sampling and geometric probability for uniform 2D sampling, algorithmic array processing for findin...
Find Feature Activation Order
This question evaluates graph-algorithms and dependency-resolution skills, including reasoning about prerequisite relationships, ordering constraints,...
Solve matrix groups and recipe inventory
This pair of problems evaluates block-wise grid processing and aggregation for minimum-value selection alongside dependency-resolution and resource-al...
Compute distance-sum from every tree node
This question evaluates understanding of tree and graph algorithms, including computation of pairwise distances and techniques for aggregating path le...
Maintain k-th largest in a stream
Design and implement a class KthLargest that, given an integer k and an initial list of integers, supports: ( 1) KthLargest(k, nums): constructor; ( 2...
Compute shortest paths with blocked nodes
Given a graph with nodes and edges and a designated source node s, compute the shortest distance from s to every other node. Some nodes are inaccessib...
Find largest subset sharing a common digit
You are given a list of two-digit integers (each from 10 to 99, inclusive). You want to select as many numbers as possible in one selection such that:...
Design compressed vector and compute dot product
This question evaluates understanding of data structure design, sequence compression concepts (such as run-length patterns), and numeric algorithm eff...
Compute distance to nearest taxi in grid
This question evaluates understanding of graph traversal and shortest-path reasoning on grids, algorithmic problem-solving for computing distances fro...
Maximize sum without choosing adjacent elements
This question evaluates a candidate's understanding of array-based optimization and dynamic programming concepts for computing a maximum sum under non...
Determine winner in stack-merging game
This question evaluates understanding of combinatorial game theory, impartial game analysis, state-space encoding, and efficient state-space search te...
Minimize travel time with optional meeting point
This question evaluates a candidate's understanding of graph shortest-path computation and meeting-point optimization, testing skills in handling weig...
Find where to cut cake into equal areas
This question evaluates geometric area computation, handling of piecewise-constant profiles formed by adjacent rectangles, and attention to numerical ...