Google Coding & Algorithms Interview Questions
Preparing for Google Coding & Algorithms interview questions means getting ready for a rigorous, process-driven evaluation that emphasizes clean problem solving, clear communication, and algorithmic depth. Google tends to focus on core data structures and algorithmic patterns—arrays and strings, trees and graphs, dynamic programming, hashing, and complexity trade-offs—while also assessing how you reason through edge cases, test your ideas, and write production-minded code in a collaborative environment. Expect live coding on a shared document during screens and multiple 45‑minute coding rounds in onsite or virtual loops, with system design and behavioral evaluations added for more senior roles. Effective interview preparation balances breadth and depth: practice medium-to-hard algorithmic problems under timed conditions, review core computer science fundamentals, and rehearse explaining tradeoffs and correctness aloud. Work on structured problem walkthroughs, mock interviews that simulate Google’s collaborative doc format, and concise post-solution optimizations. Also prepare concise, impact‑focused stories for the behavioral round and plan a realistic multi-week schedule that includes focused drills, full mock loops, and targeted review of persistent weak spots.

"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."
Compute minimal transfers to settle group expenses
Problem A group of friends go on a trip and share expenses. Each expense is recorded as an object: - payer (string): who paid the full amount - amount...
Find k pairs with smallest sums
You are given two sorted integer arrays arr1 and arr2 (each sorted in non-decreasing order), and an integer k. Consider all possible pairs formed by t...
Find largest subset sharing a common digit
You are given a list A of two-digit integers (each from 10 to 99). Two integers are said to “share a digit” if they have at least one digit in common ...
Find numbers with exactly two sum-of-squares forms
This question evaluates understanding of integer representations as sums of two squares and the ability to reason about counting distinct unordered re...
Minimize L2, L1, and quantile losses
Given an array X of n real numbers, derive the value θ that minimizes the sum of squared deviations Σ(xi−θ)² (mean) and the sum of absolute deviations...
Implement anagram check and stable deduplication
Part A — Anagram checker: Write a function is_anagram(a: str, b: str, locale: str = 'en') -> bool that returns True iff a and b are anagrams under the...
Compute sliding-window average excluding top k
This question evaluates a candidate's understanding of sliding-window algorithms, order-statistics maintenance, and data-structure techniques for incr...
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...
Solve Banana Speed and Interval Merge
During two technical phone screens for a new graduate software engineering role, the candidate was asked to solve two coding problems: minimum eating ...
Solve Grid and Counting Problems
A software engineering intern phone screen included two coding tasks: 1. Count islands in a grid Given an m x n grid of characters where '1' re...
Find shortest path with blocked nodes
Question Given an unweighted graph, a start node, an end node, and a block_set of nodes that cannot be traversed, return the length of the shortest pa...
Decide string transform with directional tokens and walls
Decide string transform with directional tokens and walls You are given two equal-length strings start and target of length n, each consisting only of...
Implement Sampling and Minimize Loss in Numerical Coding
Scenario Numerical coding challenges on sampling and loss minimization. Question a) Implement functions to sample from truncated normal distributions ...
Determine If Two Strings Are Anagrams Efficiently
Scenario Backend service needs to verify whether two user-provided strings are anagrams for text-matching features. Question Implement a Python functi...
User Activity Analytics: Unique Users per Activity and Average Time on Site
User Activity Analytics You are given a collection of records, where each record captures a single user's action on a website. Each record is a dictio...
Implement sampling and subarray scan
A coding interview included the following algorithm questions: 1. You are given access to a function rand01() that returns an independent sample from ...
Count super-streak segments in an event stream
You are given a time-ordered sequence of events. Each event has: - type, a string or integer event type. - ts, an integer timestamp in milliseconds or...
Find Common Free Time Slots Across Calendars
This question evaluates a candidate's ability to work with interval merging and sweep-line techniques over multiple overlapping schedules. It tests pr...
Count Clusters of 2D Points Within a Radius
This question tests graph traversal skills, specifically identifying connected components among a set of 2D points using distance-based adjacency. It ...
Find the Longest Path of Equal-Valued Tree Nodes
Find the longest path of equal-valued nodes in a binary tree encoded as a breadth-first list. Clarify the ambiguity with strict BST terminology, then ...