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
Hard
Software EngineerSenior+ Locked

Solve order-statistics and XOR-triplet problems

This multi-part question evaluates skills in order-statistics and efficient counting for array inversion-like problems, alongside bitwise manipulation...

Coding & Algorithms
21
0
186 people solved
Jan 22, 2026
Google logo
Google
Medium
Data EngineerIntern

Write SQL and merge linked lists

The technical interview included two coding-style tasks: a SQL analytics query and merging two sorted linked lists. Constraints & Assumptions - For SQ...

Coding & Algorithms
4
1
75 people solved
Mar 9, 2025
Google logo
Google
Medium
Software Engineer AI

Implement Checksums and Feature Rollout Evaluation

Complete the following two coding tasks in a 90-minute online assessment. An AI coding assistant may be available, but the submitted code must pass th...

Coding & Algorithms
7
0
44 people solved
Apr 30, 2026
Google logo
Google
Medium
Software Engineer Locked

Solve graph and linked list tasks

This question evaluates competencies in dependency graph modeling and reachability, shortest-path computation in weighted directed graphs, and space-e...

Coding & Algorithms
17
0
178 people solved
Feb 12, 2026
Google logo
Google
Medium
Software Engineer

Implement frequency + distance top‑K queries

You will implement solutions for two coding interview questions. Question 1: Return the top‑K points by frequency (with distance tie‑break) You are gi...

Coding & Algorithms
74
0
620 people solved
Feb 12, 2026
Google logo
Google
Medium
Software Engineer Locked

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

Coding & Algorithms
1
0
9 people solved
Jun 9, 2026
Google logo
Google
Medium
Software Engineer Locked

Find Containing Range

This question evaluates the ability to design appropriate data structures and apply algorithmic reasoning for efficient interval containment queries, ...

Coding & Algorithms
4
0
19 people solved
Jun 4, 2026
Google logo
Google
Hard
Software Engineer

Apply Range Overwrite Queries

You are given an integer array nums of length n and a list of range-assignment queries. Each query is a tuple (left, right, value), where left and rig...

Coding & Algorithms
22
1
232 people solved
Feb 25, 2026
Google logo
Google
Hard
Software Engineer Locked

Find Dictionary Matches for a Jammed String

This question evaluates string-processing and pattern-matching skills, specifically run-length grouping of consecutive characters and efficient dictio...

Coding & Algorithms
7
0
63 people solved
Apr 9, 2026
Google logo
Google
Medium
Software Engineer Locked

Find Earliest Fully Connected Time

This question evaluates a candidate's understanding of dynamic graph connectivity, time-ordered event processing, and state maintenance in graphs, inc...

Coding & Algorithms
33
1
446 people solved
Apr 5, 2026
Google logo
Google
Hard
Software Engineer AI Locked

Solve checksum and dependency debugging tasks

This question evaluates skills in string processing, modular arithmetic-based checksum computation and mapping, plus debugging of feature enablement l...

Coding & Algorithms
14
0
126 people solved
Apr 4, 2026
Google logo
Google
Hard
Machine Learning Engineer Locked

Solve several streaming, DAG, and DP tasks

This multi-part question evaluates proficiency in streaming and online algorithms, DAG-based scheduling and parallelism reasoning, and constrained dyn...

Coding & Algorithms
13
1
150 people solved
Jan 6, 2026
Google logo
Google
Medium
Software Engineer Locked

Consolidate On-Call Rotation Segments

This question evaluates proficiency with interval manipulation, set management, sorting and event ordering, and the use of appropriate data structures...

Coding & Algorithms
5
0
17 people solved
May 25, 2026
Google logo
Google
Hard
Software Engineer

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

Coding & Algorithms
0
0
13 people solved
Mar 29, 2026
Google logo
Google
Hard
Software Engineer Locked

Compute minimax grid path and network delay

This question evaluates algorithmic problem-solving in shortest-path and path-optimization contexts, specifically minimax pathfinding on a grid and si...

Coding & Algorithms
20
0
238 people solved
Jan 22, 2026
Google logo
Google
Medium
Software Engineer

Check if all substrings are dictionary 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 ...

Coding & Algorithms
33
0
319 people solved
Mar 11, 2026
Google logo
Google
Medium
Software Engineer Locked

Simulate meeting-room bookings and return busiest room

This question evaluates a candidate's competence in scheduling and resource-allocation algorithms, focusing on simulation of interval-based bookings, ...

Coding & Algorithms
15
0
159 people solved
Mar 1, 2026
Google logo
Google
Medium
Software Engineer Locked

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

Coding & Algorithms
6
2
37 people solved
May 2, 2026
Google logo
Google
Medium
Machine Learning Engineer

Implement a Web Crawler with BFS and DFS

Implement a simple web crawler in Python. You are given: - A starting URL. - A function get_links(url) -> list[str] that returns all outgoing links fr...

Coding & Algorithms
1
0
18 people solved
Dec 24, 2025
Google logo
Google
Medium
Software Engineer

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

Coding & Algorithms
12
0
171 people solved
Sep 6, 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