Software Engineer • Mid-Level
Software Engineer • Mid-Level
High QualityPractice Other Questions that Google Asked
Continue with targeted prep from Google's coding question bank and system design questions.
Interview Summary
The Google L4 process included a phone screen followed by three onsite coding interviews and a Googleyness & Leadership round. The technical questions covered a multi-node LCA variant, streaming temperature statistics, a grid-based delivery routing problem, and a logger rate limiter that had to handle out-of-order timestamps.
Most questions also included scalability or performance follow-ups, such as preprocessing repeated LCA queries, reducing search work on a large grid, or maintaining constant-time moving-window operations.
Interview Details
Round 1 — Phone Screen: Lowest Common Manager for Multiple Employees
A company's reporting hierarchy is represented as a binary tree. Each node represents an employee, and the parent node represents that employee's direct manager. Given a set containing multiple employees, return their lowest common manager—the lowest node in the hierarchy that is an ancestor of every employee in the requested set.
The follow-ups focused on performance:
- Given
Kemployees and tree heightH, improve the query complexity. - If the employee set becomes very large or the system must answer this query frequently, consider preprocessing the hierarchy to accelerate future queries.
This was a multi-node variation of the standard Lowest Common Ancestor problem.
Round 2 — Onsite Coding: Moving Temperature Statistics
The first onsite coding round asked me to design a data structure for processing a continuous stream of temperature readings. The structure needed to
Unlock Full Details
Create a free account to unlock this interview experience report.