Google DS & Algo Round Interview Questions


Google DS & Algo 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. Count String Prefixes on Tree Paths
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
160. Find Most Active Users in Chat Logs
Medium
161. Design BookShelf Manager with Bookmark Functionality
Medium
162. Run Length Encoding for List of Characters
Medium
163. Router Broadcast and Shutdown Message With Collisions
Medium
186. Design Stack With Peek And Pop Maximum Element
Medium
187. Design Logger System With Message Timestamps
Medium
188. Employee Schedule Common Free Time
Hard
190. Count Distinct Islands In Grid
Medium
191. Calculator To Evaluate Simple Expression String
Hard
192. Design Tic Tac Toe Game
Medium
195. Multiply Sparse Matrices
Medium
197. Longest Substring With At Most N Distinct Characters
Hard
202. Design Snake Game With Food And Score
Medium
203. Generate Palindromic Permutations Of String
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
165. Design LRU Cache With Time Constraint
Medium
183. Design Google Like Search Autocomplete System
Medium
199. Design System To Store Logs With Timestamp
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