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."
Understand Simpson's Paradox with Simple Examples
Understand Simpson's Paradox with Simple Examples Scenario You are a data scientist advising a product team on statistical analysis and experimental d...
Explain what happens when you run ls
In Linux, explain the end-to-end flow of what happens when a user types ls in a shell and presses Enter. Include: - What the shell does - How the exec...
Why Would Users Care and Why Build It?
You are interviewing for a Google Product Manager role. Assume the product is a new Google AI productivity assistant integrated into Search, Gmail, Do...
Answer Staff-level leadership scenarios using STAR
Behavioral prompts (Staff/L6) Provide structured answers (e.g., STAR) for scenarios like: 1. Most important technical decision you drove: how you deci...
Design a large-scale distributed rate limiter
This question evaluates system design competency in distributed systems, focusing on scalability, multi-tenant isolation, rate-limiting algorithms, co...
Design feedback-driven recommender
Design feedback-driven recommender Design: Contextual Bandit Recommendation with Online Learning You are designing an online learning recommendation s...
Design long-tail search evaluation under label budget
Estimating ΔNDCG@10 With Limited Labels Under a Heavy-Tailed Query Mix You serve ~100M queries/day. Query frequencies follow a Pareto distribution wit...
Analyze data duplication effects in linear regression
OLS With Duplicated Observations: Estimator, Variance, and Inference Pitfalls Context: You have the linear model y = Xβ + ε with full-rank X ∈ ℝ^{n×p}...
Check if all substrings are anagrams of words
You are given a string s (letters only) and access to an English dictionary dict (a set of valid words). Return true if every contiguous substring of ...
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...
Design server allocation for multi-type nodes
Design a service to manage a large pool (about 100, 000) of server nodes. Each node can satisfy multiple instance types; clients call getServer(reqNum...
Find the Longest Consecutive Path in a Binary Tree
Given a binary tree, return the length of the longest downward path where each child value is exactly one greater than its parent value. Nodes have va...
Determine if a 14-tile hand is winning
You are given an integer array tiles of length 14 representing a Mahjong-like hand. Each integer is a tile value from 1 to 9 (single suit). You may re...
Design a Twitter hashtag metrics aggregator
This question evaluates competency in designing scalable, low-latency real-time stream processing and aggregation systems, covering concepts such as w...
Count Good Numbers up to a Limit
Count Good Numbers up to a Limit A positive integer is good when all of the following hold: 1. Its decimal representation contains no digit 0. 2. No d...
Find the Longest Momentum-Aware Water Path
Find the Longest Momentum-Aware Water Path Given an m × n integer height grid, find the maximum number of cells in a valid path. A path may start at a...
Describe a challenging recent project
Behavioral Tell me about a challenging and interesting project you worked on recently. Follow-ups - What were the hardest problems you encountered? - ...
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,...
Compare two stores’ profits rigorously
Prompt: 14-Day Plan to Decide Which Snack Shop Will Be More Profitable Next Quarter Context: Two snack shops operate simultaneously at a school gate. ...
Explain Changing Priorities and Your Role on a Team
Explain Changing Priorities and Your Role on a Team Describe how you respond when project priorities change and how you characterize the role you usua...