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 a waitlist manager
Object-Oriented Design: Waitlist Manager Design a waitlist management component (e.g., for a restaurant or event) that maintains FIFO order for partie...
Find most co‑purchased product pairs in SQL
Given the schema and sample data below, write ANSI-SQL to return the top 5 unordered product pairs most frequently purchased together across distinct ...
Design an app-store app recommendation system
You are building an app recommendation system for a mobile app store. Goal Recommend apps to a user on surfaces such as: - Home feed / “Recommended fo...
Compute city skyline outline
You are given a list of rectangular buildings in a 2D city skyline. Each building is represented by three integers [L, R, H]: - L: the x-coordinate of...
Design a logger that returns top-K messages
Problem Design an in-memory logging component that supports recording log events and querying the top K most frequent messages. Each log event has: - ...
Respond to long-term concerns after A/B success
Your model performs well in an A/B test (statistically significant lift on the primary metric). However, your manager believes the model may harm long...
Implement Longest-Match Text Replacement
You are given a text string and a dictionary of replacement entries. Each dictionary entry has the form token:id, where token is a string pattern and ...
Describe leadership under changing priorities
Prepare structured answers for these behavioral questions: - Tell me about a time you went above and beyond expectations. - Tell me about a time you f...
Design a global real-time notification system
Problem Design a global, real-time notification system that can deliver messages via: - Mobile/Web push - Email - SMS The system supports 100M+ users ...
Can bootstrap help reduce variance
An interviewer asks: “Can bootstrap help reduce variance?” Answer this question precisely. Distinguish between: 1) Using the bootstrap to estimate var...
Design lexicographic range query word store
Design a storage/data structure for a set of strings that supports lexicographic range queries. You are given a collection of words (strings), stored ...
Explain LLM fine-tuning and generative models
Machine Learning fundamentals (LLM / Generative AI track) You are interviewed for an ML role focused on LLMs and generative AI. Part A — LLM fine-tuni...
Answer range queries for alternating parity subarrays
Problem You are given an integer array nums of length n and q queries. Each query is a pair [l, r] (0-indexed, inclusive). A subarray nums[l..r] is ca...
Find longest increasing contiguous subarray
Problem You are given an integer array nums (length n). Part 1 Find the length of the longest contiguous subarray that is strictly increasing (i.e., f...
Minimize Fence Painting Operations
You are given a fence made of n adjacent vertical boards. Each board has width 1, and the height of the i-th board is a[i]. You have a brush of width ...
Implement Memory-Efficient Document Undo/Redo
You are implementing a simplified document layer for a design tool. The document is a map from string key to string value. Implement a data structure ...
Learning from Failure & Conflict
HR Screen — Product Manager (Google) In a first-round behavioral screen for a Product Manager role, you are often assessed on ownership, resilience, c...
Implement Batched Undo/Redo Layer
You are implementing a simplified document layer for a design tool. The layer stores properties as a map<string, string>. Implement a class that suppo...
Design a rolling hit counter API
Rolling hit counter (time/space optimized) Design a data structure that records events (“hits”) and can return how many hits happened in the most rece...
Solve meeting-room scheduling and shortest paths
You are asked to solve two algorithmic problems. Part A: Meeting-room scheduling (intervals) You are given an array of meeting time intervals interval...