Google Interview Questions

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.

514 Questions 1 Company08.01.2026
Showing 20 results
Role
Google logo
Google
Medium
Data Scientist

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...

Statistics & Math
11
0
105 people solved
Aug 4, 2025
Google logo
Google
Medium
Software Engineer

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...

Software Engineering Fundamentals
7
0
60 people solved
Feb 1, 2026
Google logo
Google
Hard
Product Manager

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...

Product Design & Strategy
31
0
226 people solved
Jun 20, 2025
Google logo
Google
Medium
Software EngineerSenior+

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...

Behavioral & Leadership
6
0
76 people solved
Jan 12, 2026
Google logo
Google
Medium
Software EngineerSenior+ Locked

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...

System Design
15
0
164 people solved
Jan 12, 2026
Google logo
Google
Hard
Machine Learning Engineer

Design feedback-driven recommender

Design feedback-driven recommender Design: Contextual Bandit Recommendation with Online Learning You are designing an online learning recommendation s...

ML System Design
21
0
138 people solved
Jul 29, 2025
Google logo
Google
Hard
Data Scientist

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...

Analytics & Experimentation
4
0
68 people solved
Oct 13, 2025
Google logo
Google
Medium
Data Scientist

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}...

Statistics & Math
16
0
200 people solved
Oct 13, 2025
Google logo
Google
Medium
Software Engineer

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 ...

Coding & Algorithms
60
0
564 people solved
Mar 11, 2026
Google logo
Google
Hard
Software Engineer

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...

Behavioral & Leadership
9
0
83 people solved
Jan 6, 2026
Google logo
Google
Medium
Software Engineer

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...

Coding & Algorithms
8
0
125 people solved
Sep 6, 2025
Google logo
Google
Medium
Software Engineer

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...

Coding & Algorithms
0
0
6 people solved
Apr 28, 2026
Google logo
Google
Medium
Software Engineer

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...

Coding & Algorithms
20
0
203 people solved
Mar 9, 2026
Google logo
Google
Medium
Software Engineer Locked

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...

System Design
11
0
110 people solved
Dec 15, 2025
Google logo
Google
Medium
Software EngineerNew Grad

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...

Coding & Algorithms
1
0
10 people solved
Apr 26, 2026
Google logo
Google
Medium
Software EngineerNew Grad

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...

Coding & Algorithms
1
0
10 people solved
Apr 26, 2026
Google logo
Google
Medium
Software Engineer

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? - ...

Behavioral & Leadership
6
0
115 people solved
Feb 12, 2026
Google logo
Google
Medium
Data Scientist

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,...

Statistics & Math
5
0
69 people solved
Oct 13, 2025
Google logo
Google
Hard
Data Scientist

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. ...

Analytics & Experimentation
7
0
58 people solved
Oct 13, 2025
Google logo
Google
Medium
Software EngineerNew Grad

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...

Behavioral & Leadership
0
0
9 people solved
Dec 8, 2025

Frequently Asked Questions

How hard are Google interview questions and how does difficulty vary by level?
Google interview questions are challenging but predictable: they range from medium algorithmic problems for new grads to hard, system- and architecture-focused problems at senior levels. L3/new-grad interviews emphasize correct, clean code with solid complexity and edge-case handling; expect two to three coding rounds plus a Googleyness/leadership conversation. L4 requires optimal solutions, clearer trade-off communication, and sometimes a system-design or domain round. L5 raises the bar on system design, scalability, ownership, and leadership impact. Non-SWE roles shift emphasis toward statistics, experiment design, or model-building depending on the job.
What does the Google interview process look like and where do these 514 questions appear?
The typical loop starts with a recruiter screen, one or more phone or virtual coding screens, then a virtual or in-person onsite loop of 3–5 forty-five minute interviews: mostly coding, plus a Googleyness/leadership behavioral round and usually one domain or system-design session for mid and senior roles. The 514-question corpus covers those stages: phone-screen style coding, onsite deep-coding, system-design prompts, analytics/experiment questions for data roles, ML implementation prompts, and product-spec behavioral cases. Hiring committee review, level calibration, and team match happen after the loop and extend timelines by several weeks.
How should I schedule my preparation and how much time do I need to prepare effectively?
Plan prep based on level and role: new grads should spend 4–6 weeks focused on core data structures, algorithm patterns, and 4–6 polished STAR stories. Mid-level L4 candidates should budget 6–10 weeks, adding system design and production-readiness topics plus mock interviews. L5 and above need 8–12+ weeks emphasizing architecture, trade-offs, and leadership narratives. Break weeks into coding practice, timed mocks, system-design sprints, and role-specific work (experiments for DS, model lifecycle for MLE). Run at least 6–10 realistic mock interviews and iterate on communication and edge-case testing.
What specific subtopics and recurring themes should I expect by role at Google?
For Software Engineer interviews expect spatial and streaming geometry problems (counting or removing points within distance), concurrency and async primitives, deterministic task ordering and schedulers, calendar/free-slot algorithms, boolean-expression fixes, array/subarray patterns, and small-system OOD prompts like dorm room assignment. Data Scientist questions concentrate on causal and experiment design, funnel and product-metric computation, unbiased upgrade experiments, bootstrap and percentile estimation from buckets, sampling algorithms, and applied modeling like shot-conversion. Machine Learning Engineer rounds emphasize transformer/LLM building blocks and trade-offs, recommendation and ranking cold-start strategies, weighted sampling, and implementation details.
Any standout tips and common pitfalls, including level-specific advice (L3, L4, L5) and intern/new-grad notes?
Start by matching preparation to level: L3/new-grad must deliver correct, well-tested code and clear complexity; L4 must reach optimal solutions, explain trade-offs, and show production thinking; L5 must demonstrate architecture, scaling trade-offs, and cross-team impact. For interns/new-grads expect a phone coding screen followed by a virtual onsite; practice timed screens and basic system thinking. Across levels, talk through examples, define constraints, test edge cases, and avoid premature optimization or vague assumptions. Prepare 4–6 STAR stories for Googleyness, and don’t overlook clear, testable code and thought-out system trade-offs.

Explore more Google interview questions

Jump straight to Google questions for a specific role or category.

By role
By category
In-depth guides
Across all companies

Featured Google interview prep guides

Concept walkthroughs, worked examples, and the real questions from candidate reports.

Editorial prep
Machine Learning Engineer
Google interview
Read the guide