Google

Google Machine Learning Engineer Onsite Coding Questions

7+ questions from real Google Machine Learning Engineer Onsite Coding rounds, reported by candidates who interviewed there.

7
Questions
4
Topic Areas
10+
Sources

What does the Google Onsite Coding round test?

The Google onsite coding round is the core technical evaluation. Machine Learning Engineer candidates typically see 2-3 algorithm and data structure problems. Problems range from medium to hard difficulty, and interviewers evaluate both correctness and code quality.

Top Topics in This Round

Google Machine Learning Engineer Onsite Coding Questions

Google onsite

Ml Theory 2019

This onsite interview includes five rounds (late Oct) and I failed at the hire committee. The position is a machine learning software engineer. After first round behavior questions, which were...

Google L5 Senior SWE Machine Learning Interview Experience

Dynamic Programming,Graph,Ml,System Design 2026

Hi Everyone, I wanted to share an extremely disappointing experience that happened in my Google L5 onsites. In 2025 beginning I interviewed for SWE, ML role at Google. My initial rounds were two domai

* Location: US * Based on interview timing, interviewer may be from UK/EU/US. * Level: L5 * Status: Cleared 3 coding rounds. Recruiter informed all are strong hire rating. (finally) This is my 3rd att

* Location: US * Based on interview timing, interviewer may be from UK/EU. * Level: L5 * Status so far: Cleared 3 coding rounds. Recruiter informed all are positive rating. (finally) This is my 3rd at

Google L4 Applied/ML Engineer Onsite Interview Experience

Arrays,Binary Search,Heap,Backtracking,Matrix,Ml,Recursion,Graph 2025

**Phone Screening** * **Problem:** Calculate the minimum time required to complete $M$ tasks using $N$ CPUs, where each CPU executes one task at a time without cooldowns. * **Follow-up:** Given the ca

Implement a simplified Transformer block forward pass. You will be given the input tensor and weight matrices and must compute the output according to the specified formulas. ## Task Given: - Input

Design a class to handle the training and evaluation of AI/ML models. The class should support the following features: 1. Initialize model parameters. 2. Load training data. 3. Train the model and ou

What to Expect in the Google Onsite Coding Round

The Google Machine Learning Engineer Onsite Coding round has a specific calibration purpose distinct from other rounds in the loop. Across 7+ verified reports on LeakCode for this exact round type, the consistent expectations: clear scoping of the problem before diving into a solution, explicit reasoning about complexity, structured handling of edge cases, and the ability to discuss trade-offs between two reasonable approaches.

Reports tagged with the Onsite Coding round at Google show recurring patterns in difficulty and topic distribution. The Onsite Coding round is typically 45-60 minutes; the interviewer is calibrated against a specific rubric. The discriminator between candidates who advance and candidates who do not is rarely the final correctness of the answer. It is the path: did you clarify, did you verbalize your approach, did you handle edge cases, and did you communicate throughout.

How To Prepare for This Specific Round

Filter the questions below to the most recent reports (past 6-12 months). Questions tagged for this exact round type from this exact company at this exact role level are the highest-signal data available. Older reports may reference questions that have since rotated out of the company's pool.

Practice 4-6 representative problems from this set under timed conditions. The goal is not memorization (companies rotate questions); the goal is to internalize the patterns the interviewer typically reaches for and the depth of follow-up to expect. Reports on LeakCode also tag the typical follow-up depth at this round type, which is the discriminating signal between hire and no-hire calibration.

Onsite Coding Round Timing and Format

The Onsite Coding round at Google typically runs 45-60 minutes. Use the first 2-3 minutes to clarify requirements; you should never start coding or designing without verifying the input/output format, constraints, and edge cases out loud. Use the next 5-7 minutes to verbalize your approach before writing any code. The middle 20-30 minutes are implementation. Reserve the final 10 minutes for testing with concrete examples and discussing optimization or trade-offs.

Time budget discipline is one of the most reliable senior-vs-junior discriminators in this round. Strong candidates verbalize where they are in their budget out loud ("I've used about 20 minutes, I have 15 minutes left for testing and one optimization"). This signals engineering maturity to the interviewer and creates positive feedback they can capture in writing.

Common Failure Modes in This Round

Reports tagged "no hire" at Google Machine Learning Engineer Onsite Coding commonly cite: coding silently without verbalizing approach, jumping to implementation before clarifying requirements, missing edge cases (empty input, single element, very large input), producing working code that the candidate cannot refactor when asked, and failing to test their solution with concrete examples before declaring done.

The single most predictive failure mode in 2025-2026 reports: not asking clarifying questions. Interviewers at all FAANG companies are explicitly trained to weight this dimension. Strong candidates ask 3-5 clarifying questions even on problems that look obvious; weak candidates dive into code immediately. The clarifying-question check is often the first signal recorded in the interviewer's notes.

See All 7 Questions from This Round

Full question text, answer context, and frequency data for subscribers.

Get Access