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."
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...
Compare NLP tokenization and LLM recommendations
You’re interviewing for an NLP-focused ML role. Part A — NLP fundamentals: tokenization Explain and compare common tokenization approaches used in mod...
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...
How do you handle conflict and ambiguity?
You are asked a series of detailed behavioral questions. Answer each with specific context, actions, and measurable outcomes. Conflict, teamwork, and ...
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...
Choose best/worst actions in workplace ethics scenarios
You are taking a situational judgment test (SJT). For each scenario below, the test presents four possible actions. You must select: - Most likely / b...
Answer Google Behavioral Questions
Question In a behavioral interview for a Data Scientist role at Google, how would you answer the following questions? A strong answer should be specif...
Maximize Boundary-Difference Subarray Sum
Given an integer array nums and an integer k, find the maximum possible sum of a non-empty contiguous subarray whose first and last elements differ by...
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...
Answer leadership and ambiguity scenarios
Question Answer the following behavioral & leadership questions with concrete examples. Use a structured format such as STAR (Situation, Task, Actions...
Design nearest-available-taxi lookup with updates
You are building a backend service for a ride-hailing app. Taxis can come online (available) or go offline (unavailable) at any time. Clients need to ...
Solve Shortest Paths and Rental Allocation
You are given two independent coding problems. Problem 1: Shortest path in a weighted graph You are given a weighted graph where each edge has a non-n...
Minimize calls to find all bad test pairs
You have \(n\) atomic tests \(t_1, t_2, \dots, t_n\). You are given access to a black-box function: `python bool runTest(set<Test> S) ` which behaves ...
Compute servers needed for daily recurring jobs
You operate a cluster of identical servers that run recurring daily jobs. For a single day, you are given a list of job execution intervals. Each inte...
Solve Two Array Optimization Problems
You are given two coding problems from the same interview round. Problem 1: Split a gold chain fairly An array weights represents the weights of conse...
Find Feature Activation Order
You are building a feature-flag system for a product. There are n features labeled 0 to n - 1. Each dependency pair [a, b] means feature a depends on ...
Solve Two Coding Interview Problems
You are asked to solve two independent coding problems. Problem 1: Evaluate Nested Math Expressions Implement a function that evaluates a string expre...
Answer conflict, failure, and proud project questions
Behavioral questions Answer the following behavioral prompts using real examples from your experience: 1. Conflict: Tell me about a time you had a con...
Count same-color squares in a character grid
You are given a 2D grid (matrix) of characters. Each character represents a color: cells with the same character are considered the same color. Formal...