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."
Build a Next-Word Predictor
Implement a simple next-word model over tokenized training sentences. You need to write two functions: 1. train(sentences): receives a list of tokeniz...
Delete a Node From a Search Tree
You are given the root of a binary search tree and an integer key. Delete the node whose value equals key, if it exists, while preserving the binary s...
Implement matrix transforms and discuss eigenvalues
You are given a square matrix A (size n × n). 1. Diagonal symmetry (transpose): Transform A into its transpose (mirror across the main diagonal). Pref...
Count Special Index Pairs
Given an integer array nums of length n, count the number of index pairs (i, j) such that: - 0 <= i < j < n - nums[i] * nums[j] is even - j - i is odd...
Can board states be transformed?
You are given two strings, start and target, of equal length representing a one-dimensional board. Each character is one of: - L: a piece that may mov...
Decide string transform with directional tokens and walls
You are given two equal-length strings start and target of length n, each consisting only of the characters 'L', 'R', '.', and 'X'. A dot '.' represen...
Implement substring search and weighted sampling
Two coding questions were asked in the onsite. 1. Substring search: Given two strings text and pattern, return the starting index of the first occurre...
Determine Normality of Single Observation with Z-Test
Hypothesis Test for a Single Observation Against a Standard Normal Context You observe a single numeric value, x, and want to decide whether it could ...
Describe Your Research and Cross-Functional Collaboration Experience
Behavioral Interview Prompt: Research Rigor and Cross‑Functional Collaboration Context You are interviewing for a Data Scientist role in a technical p...
Write SQL and merge linked lists
The technical interview included two coding-style tasks: 1. SQL analytics task You are given three tables: - customers(customer_id, customer_nam...
Handling an Ambiguous "Family Tree" Prompt
Behavioral/Leadership: Handling an Ambiguous "Family Tree" Prompt Context: In a technical screen, the interviewer says only "there is a family tree" a...
Explain handling a tight project deadline
In a behavioral interview for a software engineering or technical role, you are asked: > Describe a time you had to work under a very tight deadline. ...
Detect Overfitting or Underfitting in Logistic Regression Models
Logistic Regression Bias–Variance in High‑Dimensional Ads Prediction Scenario You are building a large‑scale binary classifier (e.g., click/conversion...
Determine Impact of New Chat-Notification on User Engagement
Scenario A product team wants to determine whether a new chat-notification design increases daily active users (DAU) in Google Workspace Chat. Task De...
Validate course catalog dependencies
Design a function to validate an e-learning course catalog. You are given: ( 1) a set of course IDs, and ( 2) a list of prerequisite pairs (u, v) mean...
Match payments to invoices by memo or amount
You are building a small payment-to-invoice matching utility. Data You are given: - invoices: a list of invoice records with: - invoice_id (string) ...
Implement a robust Python generator
Given a list of integers, write a Python generator that yields the integers from the list while handling edge cases such as None values, empty input, ...
Explain SLI/SLO/SLA and design monitoring
SLI vs SLO vs SLA for a Web API; Error Budgets; Monitoring and Alerting Design Context: You are designing reliability goals and on-call policies for a...
Diagnose distributed database inconsistency
Distributed Database Incident: Inconsistent Replicas You are on-call for a distributed database that serves production traffic. Dashboards show data i...
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...