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."
Design an A/B test for search ranking
Scenario You work on a search product and have built a new search ranking/retrieval algorithm (Variant B). The current algorithm is Variant A. You nee...
Describe teamwork and personal achievements
The interview included several behavioral questions: 1. Tell me about a time you helped a teammate who was underperforming. 2. Describe the most chall...
Compute Turnstile Crossing Times
You are given n people waiting to use a single-door turnstile. Each person has: - time[i]: the time when person i arrives at the turnstile. - directio...
Compute distance to nearest taxi in grid
You are given an R x C grid representing a city map. - grid[r][c] = 1 means there is a taxi located at cell (r, c). - grid[r][c] = 0 means the cell is...
Estimate weather’s effect on mental health
Scenario You are studying whether weather (e.g., temperature, precipitation, sunlight, air pressure) affects mental health outcomes (e.g., depression ...
Implement string formatting and request tracking tasks
You are given several small coding tasks. Implement each as described. Task A — Convert snake_case to camelCase Write a function that converts an iden...
Explain LLM lifecycle and trade-offs
Explain the end-to-end lifecycle of a modern large language model. Cover training data collection and filtering, pretraining objectives, transformer a...
Design set with O(1) random access
Design a data structure ("FancySet") that stores unique integers and supports the following operations, each in average O(1) time: - add(x): Insert va...
Solve order-statistics and XOR-triplet problems
You are given two separate algorithmic problems. Problem 1: Count smaller elements to the right Given an integer array nums of length n, for each inde...
Design an ads retrieval service using a heap
Object-Oriented Design: Ads Retrieval (Priority-Based) Design a component that manages ads and supports retrieving the “best” ads based on a score. Re...
Describe Key Behavioral Examples
Prepare to answer behavioral questions based on past internship or project experience. Common prompts include: 1. Tell me about a time when you disagr...
How to host many domains on one IP?
You have a single Linux server with one public IPv4 address. A coffee shop, butcher shop, and auto repair shop each want their own website and their o...
Solve Quickselect, Tree Distance, and Prefix Substrings
You are given three independent coding tasks. 1. Implement Quickselect - Given an unsorted integer array nums and an integer k, return the k-th sma...
Answer core teamwork and conflict stories
You are in a behavioral interview. Prepare to answer the following prompts using concrete examples from your experience. Prompts 1. Describe a challen...
Analyze video flags and reviews with SQL
You are designing SQL queries for YouTube Trust & Safety. Use the schema and sample data below. Unless stated otherwise, treat a flag as reviewed if t...
Handle two teams duplicating work
If you discover that two different teams are independently working on the same project or solving the same problem, how would you handle the situation...
Explain Bootstrap and Statistical Inference
Answer the following statistics questions at interview depth: - What is the bootstrap? Describe the resampling procedure, when it is useful, and what ...
Implement Checksums and Feature Rollout Evaluation
Complete the following two coding tasks in a 90-minute online assessment. An AI coding assistant may be available, but the submitted code must pass th...
How do you diagnose a ratio metric change
In an A/B test, the treatment group shows a statistically significant increase in a ratio metric: - CTR = clicks / impressions increased by +1.2% rela...
Solve meeting scheduling and robot cleaning tasks
You are given two independent coding problems. --- Problem 1: Prioritized Meeting Scheduling You are asked to schedule meetings in a single meeting ro...