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.

224 Questions 1 Company08.01.2026
Showing 20 results
Role
Google logo
Google
Easy
Software Engineer

Count Rectangle Coverage on a Grid

Count Rectangle Coverage on a Grid You are given an n x n grid initially filled with zeroes and a list of inclusive rectangular updates. Each rectangl...

Coding & Algorithms
43
2
345 people solved
Jul 21, 2026
Google logo
Google
Medium
Software Engineer

Deduplicate and Order Batch and Streaming Logs

Deduplicate and Order Batch and Streaming Logs A log is (timestamp, message), where timestamp is an integer and message is compared exactly. Input ord...

Coding & Algorithms
58
1
389 people solved
Jul 14, 2026
Google logo
Google
Medium
Software Engineer

Intervals with Exactly X Concurrent Meetings

Intervals with Exactly X Concurrent Meetings Given half-open meeting intervals and an integer X, return every maximal half-open time interval during w...

Coding & Algorithms
2
0
30 people solved
Aug 1, 2026
Google logo
Google
Medium
Software Engineer

Determine All Players with Fixed Rankings

Determine All Players with Fixed Rankings There are N players and directed match results. A pair [a, b] means player a defeated player b. Results are ...

Coding & Algorithms
1
0
26 people solved
Aug 1, 2026
Google logo
Google
Medium
Software Engineer

Count Connected Clusters of Two-Dimensional Points

Count Connected Clusters of Two-Dimensional Points Problem Implement count_clusters(points, radius). points is a list of two-dimensional integer coord...

Coding & Algorithms
2
1
32 people solved
Jul 27, 2026
Google logo
Google
Medium
Software Engineer

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...

Coding & Algorithms
49
4
332 people solved
Jul 5, 2026
Google logo
Google
Medium
Software EngineerNew Grad Locked

Search a Pattern Across the Leaf Text of a Binary Tree

Search for a pattern across the left-to-right concatenation of binary-tree leaf strings, including matches that cross leaf boundaries. This algorithm ...

Coding & Algorithms
19
1
159 people solved
Jun 17, 2026
Google logo
Google
Medium
Software Engineer

Minimum Cars for Rental Requests

Minimum Cars for Rental Requests You receive rental requests, each with a unique request identifier, pickup time, and return time. Every request must ...

Coding & Algorithms
1
0
12 people solved
Aug 1, 2026
Google logo
Google
Medium
Software Engineer Locked

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...

Coding & Algorithms
19
1
145 people solved
May 23, 2026
Google logo
Google
Medium
Software EngineerNew Grad Locked

Generate Every Ordered Sum Using Ones and Twos

Generate every ordered string of ones and twos whose digit values sum to a target integer, with no duplicates and lexicographic output. The problem te...

Coding & Algorithms
17
1
100 people solved
Jun 17, 2026
Google logo
Google
Medium
Software Engineer Locked

Find a Horizontal Cut That Bisects Rectangle Area

Solve a computational-geometry problem that asks for the horizontal line dividing the combined area of many disjoint rectangles in half. The exercise ...

Coding & Algorithms
9
2
75 people solved
Jun 4, 2026
Google logo
Google
Hard
Software Engineer

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...

Coding & Algorithms
11
1
61 people solved
Jul 10, 2026
Google logo
Google
Easy
Software Engineer Locked

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...

Coding & Algorithms
31
0
266 people solved
Feb 11, 2026
Google logo
Google
Medium
Software Engineer Locked

Simulate room assignments for scheduled meetings

This question evaluates scheduling and event-simulation skills, including time-ordered processing, resource allocation with tie-breaking, and efficien...

Coding & Algorithms
14
0
136 people solved
Jan 6, 2026
Google logo
Google
Medium
Software Engineer

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...

Coding & Algorithms
9
1
43 people solved
Jul 6, 2026
Google logo
Google
Medium
Software Engineer

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, ...

Coding & Algorithms
6
1
24 people solved
Jul 5, 2026
Google logo
Google
Medium
Software EngineerNew Grad

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 ...

Coding & Algorithms
109
2
1268 people solved
Mar 1, 2026
Google logo
Google
Medium
Software Engineer Locked

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...

Coding & Algorithms
11
1
125 people solved
May 30, 2026
Google logo
Google
Medium
Software Engineer

Solve three coding interview problems

You are given three independent coding questions. 1) Decode an encoded string Given an encoded string s, decode it using the following rule: - Pattern...

Coding & Algorithms
18
0
206 people solved
Oct 9, 2025
Google logo
Google
Medium
Software Engineer

Solve chat, grid paths, and car rentals

You are given three independent programming tasks. For each, describe and implement an efficient algorithm, and be prepared to analyze its time and sp...

Coding & Algorithms
14
0
190 people solved
Dec 2, 2025

Frequently Asked Questions

How difficult are Google Coding & Algorithms interviews?
Google coding and algorithms rounds are typically medium-to-hard on a LeetCode-style scale, with difficulty increasing by level and role. Phone screens usually target solid problem-solving and clean coding at a medium-to-hard level, while onsite/loop rounds expect more polished, optimized solutions and harder algorithmic thinking for senior roles. Interviewers evaluate algorithm design, correct and maintainable code, complexity trade-offs, and communication. Expect follow-ups that push for edge-case handling and performance improvements. Preparing with progressively harder problems and mock interviews helps bridge the gap to the typical onsite bar.
What is the typical Google interview process and where do Coding & Algorithms questions appear?
The process commonly starts with a recruiter screen, followed by one or two technical phone/video screens that include live coding on a shared environment, and then a virtual or onsite loop of four to six interviews that mix coding, system design (for senior candidates), and behavioral assessments. Coding and algorithms questions appear in the phone screens and in multiple onsite rounds, often as one to two algorithmic problems per technical interview. New graduate roles may include an online assessment stage. The shared-coding document or collaborative pad is a common environment for real-time problem solving.
How long should I prepare for Google Coding & Algorithms interviews?
A focused preparation timeline often ranges from six to eight weeks for candidates with solid fundamentals, and from two to four months for those rebuilding skills or targeting senior levels. Early weeks should refresh data structures, complexity analysis, and basic algorithms; middle weeks should emphasize consistent timed practice of medium to hard problems and pattern recognition; final weeks should include mock interviews, whiteboard or shared-doc practice, and review of common failure cases. Allocate regular, spaced practice and iterative feedback to close gaps, and simulate the exact environment (no IDE, shared doc) before real interviews.
What key subtopics within Coding & Algorithms should I focus on for Google interviews?
Focus on core data structures (arrays, strings, linked lists, stacks, queues, trees, graphs, heaps, and hash tables) and algorithms (sorting, searching, DFS/BFS, shortest paths, topological sorts, greedy strategies, and dynamic programming). Master complexity analysis, common patterns like two-pointers, sliding window, recursion/backtracking, and graph traversal. Also practice windowed aggregates, prefix sums, CTE-like problem decomposition in coding interviews, handling NULLs/edge cases, and thinking about performance trade-offs. Clean, testable code and the ability to explain correctness and runtime are as important as finding a working solution.
What standout tips and common pitfalls should I know when preparing for Google Coding & Algorithms interviews?
Standout tips include asking clarifying questions before coding, outlining the approach and complexity up front, writing a correct simple solution before optimizing, and walking through test cases aloud. Practice in a shared-doc or whiteboard style to mirror the interview environment and time-box your practice. Common pitfalls are not communicating thought process, ignoring constraints and edge cases, prematurely optimizing without a correct baseline, and submitting untested code. Also avoid verbose or unreadable code; prioritize clarity. Mock interviews with feedback are one of the fastest ways to fix these recurring mistakes.

Explore more Google Coding & Algorithms interview questions

Real questions from candidate reports, grouped by role, topic and company.

By role
Other categories at Google
Coding & Algorithms questions at other companies
Browse all