Google Software Engineer Coding & Algorithms Interview Questions
Practice 178 real Coding & Algorithms interview questions for Software Engineer roles at Google.

"I got asked a hardcore MCM DP question and I saw it on PracHub as well. Solved that question in 5 minutes. Without PracHub I doubt I could solve it in 5 hours. Though somehow didn't get hired, perhaps I guess I solved it too fast? /s"

"Believe me i'm a student here jn US. Recently interviewed for MSFT. They asked me exact question from PracHub. I saw it the night before and ignored it cause why waste time on random sites. I legit wanna go back and redo this whole thing if I had chance. Not saying will work for everyone but there is certainly some merit to that website. And i'm gonna use it in future prep from now on like lc tagged"

"10 years of experience but never worked at a top company. PracHub's senior-level questions helped me break into FAANG at 35. Age is just a number."

"I was skeptical about the 'real questions' claim, so I put it to the test. I searched for the exact question I got grilled on at my last Meta onsite... and it was right there. Word for word."

"Got a Google recruiter call on Monday, interview on Friday. Crammed PracHub for 4 days. Passed every round. This platform is a miracle worker."

"I've used LC, Glassdoor, and random Discords. Nothing comes close to the accuracy here. The questions are actually current — that's what got me. Felt like I had a cheat sheet during the interview."

"The solution quality is insane. It covers approach, edge cases, time complexity, follow-ups. Nothing else comes close."

"Legit the only resource you need. TC went from 180k -> 350k. Just memorize the top 50 for your target company and you're golden."

"PracHub Premium for one month cost me the price of two coffees a week. It landed me a $280K+ starting offer."

"Literally just signed a $600k offer. I only had 2 weeks to prep, so I focused entirely on the company-tagged lists here. If you're targeting L5+, don't overthink it."

"Coaches and bootcamp prep courses cost around $200-300 but PracHub Premium is actually less than a Netflix subscription. And it landed me a $178K offer."

"I honestly don't know how you guys gather so many real interview questions. It's almost scary. I walked into my Amazon loop and recognized 3 out of 4 problems from your database."

"Discovered PracHub 10 days before my interview. By day 5, I stopped being nervous. By interview day, I was actually excited to show what I knew."

"I recently cleared Uber interviews (strong hire in the design round) and all the questions were present in prachub."
"The search is what sold me. I typed in a really niche DP problem I got asked last year and it actually came up, full breakdown and everything. These guys are clearly updating it constantly."
Minimize Direction Violations in a Directed Road Network
Minimize Direction Violations in a Directed Road Network There are n nodes numbered from 0 through n - 1. Every input edge [u, v] has an original dire...
Count Overlapping Rectangle Updates on a Grid
Count Overlapping Rectangle Updates on a Grid Implement range_add_counts(n, rectangles). Start with an n x n matrix of zeroes. Each rectangle is repre...
Find A Threshold-Limited Path With Minimum Required Safety
You are given an undirected graph with n nodes, a list of weighted edges, a start node, an end node, and a safety threshold. Each edge has a safety co...
Search a Pattern Across the Leaf Text of a Binary Tree
Search a Pattern Across the Leaf Text of a Binary Tree A rooted binary tree has nodes numbered from 0 through n - 1, with node 0 as the root. The arra...
Filter Repeated Robot Status Messages
Filter Repeated Robot Status Messages Implement filter_messages(events) for a robot status stream. Each event is a pair [timestamp, message]. Return, ...
Check Whether Digits Are Monotone Increasing
Check Whether Digits Are Monotone Increasing Problem A non-negative integer has monotone increasing digits when every adjacent pair of digits is non-d...
Find the Largest Monotone Increasing Number
Find the Largest Monotone Increasing Number Problem Given a non-negative integer n, return the largest integer less than or equal to n whose decimal d...
Sliding Window Average After Dropping the Largest Values
Compute one average per fixed-size sliding window after removing exactly the largest k values, counting duplicates separately. Support negative number...
Generate Every Ordered Sum Using Ones and Twos
Generate Every Ordered Sum Using Ones and Twos Given a positive integer n, return every string made only of the characters "1" and "2" whose digit val...
Find a Horizontal Cut That Bisects Rectangle Area
Find a Horizontal Cut That Bisects Rectangle Area Several non-overlapping rectangular cakes lie on a plane. A cake is represented by [x, y, width, hei...
Solve Three Array and Matrix Path Problems
This set of three problems evaluates algorithm design, complexity analysis, and data-structure reasoning across matrix path traversal, interval covera...
Build Prefix Lookup with a Trie
Build prefix lookup for repeated queries. Given words and query prefixes, return matching words for each query in lexicographic order. Implement: `pyt...
Find maximum value in huge text file
You are given the path to a very large text file on disk. The file has the following properties: - Each line contains exactly one signed 64-bit intege...
Implement string formatting and request tracking tasks
This multi-part question evaluates string manipulation, numeric formatting, character-mapping validation under 180° rotation, and event-tracking/order...
Determine Whether a Word Exists in a Graph
This question evaluates proficiency in graph algorithms and backtracking techniques, including traversal strategies, cycle avoidance, and state manage...
Convert Valid Snake Case to Lower Camel Case
Convert Valid Snake Case to Lower Camel Case Given a valid snake-case identifier, convert it to lower camel case. The input consists of one or more lo...
Return the Most Frequent Values in an Array
Given a non-empty integer array, return the k values that appear most frequently. Ties are broken by smaller value first. Implement: `python def top_k...
Solve Rooms and Top-K Streams
This question evaluates algorithmic problem-solving skills across interval scheduling/resource allocation and streaming top-k maintenance, testing com...
Design a restaurant waitlist system
You are implementing the waitlist system for a restaurant. Parties arrive over time, can cancel, and get seated when a table becomes available. Rules ...
Streaming Points: Remove Any Pair Within a Distance
This question evaluates practical use of ordered data structures for streaming input with proximity-based removal logic. It tests balanced BST or sort...