Software Engineer • Senior-Level
Software Engineer • Senior-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 L5 onsite included two coding rounds and one system design round. The first coding problem involved DFS over a matrix followed by a DP optimization, with the main challenge being how to represent the state correctly. The second was similar to LeetCode 354 — Russian Doll Envelopes.
Interview Details
Round 1 — Coding: Matrix Traversal with DFS + DP
The first coding problem involved traversing a matrix under constraints on how the next cell relates to the current or previous value. A valid next cell needed to satisfy a decreasing-value condition relative to the traversal state.
The initial approach used DFS to explore possible paths. The interviewer then asked how to optimize repeated computation using dynamic programming / memoization. The key challenge was defining the DP state correctly, since whether a move is valid depends on information from the current or previous position rather than only the coordinates themselves.
**Round 2 —
Unlock Full Details
Create a free account to unlock this interview experience report.