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."
Remove elements to avoid k-prefix duplicates
Question Given two lists listA and listB and an integer k, delete elements from listB so that the first k elements of the new listB share no value wit...
Add two big integers from digit lists
You are given two non-empty singly linked lists (or arrays) representing two non-negative integers. The digits are stored in reverse order, and each n...
Find safe travel intervals between planet influences
You are planning a space route along a one-dimensional line (the x-axis). You are given a list of planets. Each planet is represented by an integer pa...
Compute servers needed for daily recurring jobs
You operate a cluster of identical servers that run recurring daily jobs. For a single day, you are given a list of job execution intervals. Each inte...
Optimize 0/1 to bounded knapsack DP
Solve the 0/1 knapsack problem: given arrays weight[i], value[i] for i=0..n-1 and capacity W, return the maximum value and reconstruct one optimal set...
Design autocomplete with Trie
Design and implement an autocomplete service backed by a prefix tree (Trie). The service stores a dynamic dictionary of words, each carrying an intege...
Count user sessions from logs
Given a large log file where each line is "timestamp,user,action", compute the number of sessions per user. Assume a session ends if the gap between c...
Compute shortest paths with blocked nodes
Given a graph with nodes and edges and a designated source node s, compute the shortest distance from s to every other node. Some nodes are inaccessib...
Maintain k-th largest in a stream
Design and implement a class KthLargest that, given an integer k and an initial list of integers, supports: ( 1) KthLargest(k, nums): constructor; ( 2...
Maximize coins collected by 3-step pieces
You are given a 1D board of length N. Each cell is in one of three states: - Empty - Piece (a movable token) - Coin (collectible) In one move, you may...
Maintain streaming median and loosemedian
Maintain streaming median and loosemedian Design a data structure for an online stream of positive integers supporting insert (x). After each insertio...
Parse strings and find meeting slots
Question Given a text file where each line contains raw information, extract the user identifier and the numeric quantity on that line and store the r...
Find Common Free Time Slots Across Calendars
Find Common Free Time Slots Across Calendars You are building a scheduling assistant on top of a shared calendar product. Each participant has a list ...
Rearrange Tasks With Cooldown
This question evaluates task-scheduling and constraint-handling skills, testing algorithmic reasoning about arranging repeated jobs with cooldown cons...
Solve Two Coding Interview Problems
You are asked to solve two independent coding problems. Problem 1: Evaluate Nested Math Expressions Implement a function that evaluates a string expre...
Check Digits and Combine Ranges
You are asked to solve two independent coding tasks. Task 1: Check Whether an Integer Reads the Same Backward Given an integer x, return true if its d...
Check if all substrings are anagrams of words
You are given a string s (letters only) and access to an English dictionary dict (a set of valid words). Return true if every contiguous substring of ...
Return dictionary words matching a prefix
You are given a list of strings words (a dictionary) and a string prefix. Return all words in words that start with prefix. Clarifications/constraints...
Return Words Matching a Typed Prefix
Given words and a query prefix, return all words starting with that prefix in lexicographic order. Implement: `python def prefix_matches(words: list[s...
Compute minimum rooms for time intervals
You are given a list of meeting time intervals, where each interval is represented as [start, end) (start time inclusive, end time exclusive) and star...