Google Coding round Interview Questions


Google Coding round Interview Questions

Google has one of the toughest DS & Algo rounds in the industry. DSA rounds are there for both frontend and backend roles.


DP, Graph, and Line Sweep are important topics.


Google's interview codebase is very large, with questions of all difficulty levels (from super easy to super hard). One question can be a medium question with a couple of follow-ups for optimizations, or it can be just one hard question. It all depends on which question the interviewer chooses.


There are two common things about candidates who clear Google interviews and whose overall process is smooth.


  1. At least 2 "Strong-Hire" votes and no "No-Hire" in the on-site packet.
  2. Candidates who narrated trade-offs and edge cases, and correctly answered counter questions, got bumped from "Hire" to "Strong Hire" even with small bugs.

Point 2 is also valid for other top tech companies like Microsoft, Amazon, Meta, etc.


Interviewers are given explicit instructions to treat the phone-screen interview as just a normal interview and give ratings as:


  • SH = Strong Hire
  • H = Hire
  • LH = Lean Hire
  • LNH = Lean No-Hire
  • NH = No-Hire
  • SNH = Strong No-Hire

If the question's difficulty level is hard, then SH, H, LH, and LNH are considered passed.


Otherwise, SH, H, and LH are considered passed.


I created this list from people posting their experiences on forums, blogs, etc.


Below are the questions which you can directly find on LeetCode.


Below list is updated frequently . Reflects top Google questions in last 6 months

Id Title Companies Design Pattern Difficulty
137. Compress String using Prefix Pattern
Hard
138. Detect First Timed Out Job from Logs
Medium
139. Count Visible People in Queue with Taller Observer Rule
Hard
140. Maximum Sum Subarray with Equal First and Last Elements
Medium
34. Design a rate limiter
Medium
141. Longest Constrained Path in Matrix
Hard
142. Repeated Characters in Dictionary Words Due To Faulty Keyboard
Medium
143. Detect Squares Rotated along the XY Plane
Hard
144. Sum of All Good Arithmetic Sequences
Medium
145. Compile Packages with Dependencies in a Multi-Threaded Environment
Medium
146. Equal Sum Subsets with K Changes
Medium
147. Undirected Graph Path Queries
Medium
148. Array Range Update Queries
Medium
149. Router Reachability on Broadcast and Shutdown Message
Medium
150. First Bad Product Version
Medium
151. Design Logger Message Printer
Medium
152. Longest Path in Grid
Medium
153. Merge Working Hour Intervals Timeline
Medium
154. Days When Everyone is Free
Medium
155. Size of Unpainted Segments
Medium
156. Overall Distance Error Between Checkpoints and Samples
Medium
157. Minimum CPUs Needed for Earliest Tasks Completion
Medium
158. Total Scores of Leaf Domains
Medium
159. Place Nth Rook
Medium
26. Design Dictionary App to store words and their meanings
Medium
27. Design a Text Editor with Undo & Redo Command
Hard
106. Longest Path and Increasing Paths in a Grid
Medium
10642. Design Google Search Autocomplete
Medium
10353. Design Snake Game
Medium
10348. Design Tic-Tac-Toe
Medium
10635. Design Log Storage System
Medium
10379. Design Phone Directory
Medium
10362. Design Hit Counter
Medium


For discussions and suggestions,
Let's connect onLinkedIn

Book LLD Mock Interview with me
Prashant Priyadarshi
Founder, MockGym