Google Interview Preparation — DSA & System Design
Curated Question Bank & 2025–2026 Interview Intelligence
Comprehensive compilation of recent high-frequency LeetCode questions, real Google onsite custom problems, system design rounds, and 2025–2026 loop trends for Google Cloud AI Engineer & SWE candidates.
Source reference: FAANG Recent Coding Questions
1. 2025–2026 Interview Trends & Format Changes
:::info Key Algorithmic Trends
- Graphs Dominance: Graph algorithms appear in 76% of onsite loops at L4+.
- Top-Tier Patterns: Sliding window and binary search on answer space are top-tier recurring patterns.
- Rising Topics: Trie and Union-Find (Disjoint Set Union) questions are steadily rising.
- Difficulty Distribution: Approximately 19% of reported onsite problems are LeetCode Hard. Follow-up extensions are standard across all interviews.
- Google Distinctive Topics: Segment Tree and Fenwick Tree (Binary Indexed Tree / BIT) problems remain a Google-distinctive category rarely seen at other FAANG companies. :::
:::tip 2026 Interview Process Evolution
- AI-Assisted "Code Comprehension" Round (Piloting in 2026):
- Candidates read, debug, and optimize an existing codebase with Gemini available in a CoderPad-style environment (file explorer + code editor + AI chat).
- Interviewers explicitly evaluate and score AI fluency: prompt engineering quality, output validation, and debugging/refactoring AI-generated code.
- Piloted in H2 2026 for junior/mid-level roles on select US teams, expanding to L5 loops (reported August 2026: candidates explain what unfamiliar Gemini-generated code does, isolate bugs, and propose architectural refactors).
- Context: Over 75% of new internal Google code is AI-assisted.
- In-Person Rounds Reinstated:
- Reinstated for technical hires to combat AI-assisted screening fraud.
- Hybrid loop structure reported for L4: 2 virtual rounds rapid recruiter feedback 2 in-person rounds.
- Google Hiring Assessment (GHA):
- Mandatory online assessment prior to the technical phone screen.
- Technical Deep-Dive in Googleyness & Leadership (G&L):
- Now includes a part-technical architecture defense: candidates defend the technical decisions and trade-offs of a real production system they built under rigorous interviewer scrutiny.
- Early-Career Format Shift (L3/L4):
- One traditional coding round is replaced by an open-ended engineering problem session focusing on approach, trade-offs, and ambiguous problem derivation over a single rigid answer.
- Strict production-ready code grading at L4. No dedicated System Design round below L5.
- Screens often open with a 10-minute resume architecture deep-dive (e.g., Kafka, Redis, API gateways, streaming systems) prior to coding. :::
2. High-Frequency LeetCode Questions
2.1 Arrays and Strings
| # | Done | Problem | Difficulty | Key Pattern / Topic |
|---|---|---|---|---|
| 1 | Two Sum | 🟢 Easy | Hash Map lookup | |
| 2 | Longest Substring Without Repeating Characters | 🟡 Medium | Sliding Window / Hash Set | |
| 3 | Container With Most Water | 🟡 Medium | Two Pointers (Greedy contraction) | |
| 4 | 3Sum | 🟡 Medium | Two Pointers + Sorting | |
| 5 | Group Anagrams | 🟡 Medium | Hash Map / Character Frequency count | |
| 6 | Product of Array Except Self | 🟡 Medium | Prefix & Suffix Products | |
| 7 | Merge Intervals | 🟡 Medium | Interval Sorting & Merging | |
| 8 | Minimum Window Substring | 🔴 Hard | Sliding Window + Frequency Map | |
| 9 | Trapping Rain Water | 🔴 Hard | Two Pointers / Monotonic Stack | |
| 10 | Find And Replace in String | 🟡 Medium | String Manipulation / Sorting offsets | |
| 11 | Maximum Points You Can Obtain from Cards | 🟡 Medium | Fixed Sliding Window | |
| 12 | Longest String Chain | 🟡 Medium | Hash Map DP / Predecessor lookup | |
| 13 | Minimum Area Rectangle | 🟡 Medium | Coordinate Hash Set / Diagonal search | |
| 14 | Detect Squares | 🟡 Medium | Hash Map frequency / Geometry lookup | |
| 15 | Number of Unequal Triplets in Array | 🟢 Easy | Combinatorics / Prefix frequency counts | |
| 16 | Pour Water | 🟡 Medium | Simulation / Two Pointers | |
| 17 | Best Meeting Point | 🔴 Hard | Median minimization / Manhattan distance | |
| 18 | Decode String | 🟡 Medium | Stack / Recursive parsing | |
| 19 | H-Index | 🟡 Medium | Bucket Sort / Counting Sort | |
| 20 | Amount of New Area Painted Each Day | 🔴 Hard | Interval Map / Union-Find jump pointers | |
| 21 | First Missing Positive | 🔴 Hard | Cyclic Sort / In-place array hashing | |
| 22 | Jump Game | 🟡 Medium | Greedy maximum reach |
2.2 Trees and Graphs
| # | Done | Problem | Difficulty | Key Pattern / Topic |
|---|---|---|---|---|
| 1 | Number of Islands | 🟡 Medium | BFS / DFS / Matrix Flood Fill | |
| 2 | Course Schedule II | 🟡 Medium | Topological Sort (Kahn's / DFS) | |
| 3 | Validate Binary Search Tree | 🟡 Medium | BST In-order Traversal / Range validation | |
| 4 | Binary Tree Maximum Path Sum | 🔴 Hard | Post-order DFS / Subtree contribution | |
| 5 | Word Ladder | 🔴 Hard | Bi-directional BFS / Shortest Path | |
| 6 | Clone Graph | 🟡 Medium | Graph DFS/BFS + Hash Map memoization | |
| 7 | Serialize and Deserialize Binary Tree | 🔴 Hard | Pre-order Traversal / String encoding | |
| 8 | Accounts Merge | 🟡 Medium | Disjoint Set Union (DSU / Union-Find) | |
| 9 | Evaluate Division | 🟡 Medium | Weighted Directed Graph BFS/DFS / DSU | |
| 10 | Alien Dictionary | 🔴 Hard | Character Graph + Topological Sort | |
| 11 | The Earliest Moment When Everyone Become Friends | 🟡 Medium | Union-Find with Connected Component count | |
| 12 | Checking Existence of Edge Length Limited Paths | 🔴 Hard | Offline Queries + Union-Find | |
| 13 | Step-By-Step Directions From a Binary Tree Node to Another | 🟡 Medium | Lowest Common Ancestor (LCA) + Path reconstruction | |
| 14 | Swim in Rising Water | 🔴 Hard | Dijkstra (Min-Heap) / Binary Search on Answer | |
| 15 | Path With Minimum Effort | 🟡 Medium | Dijkstra / Modified BFS with Priority Queue | |
| 16 | Find Leaves of Binary Tree | 🟡 Medium | Post-order DFS Height calculation | |
| 17 | Pacific Atlantic Water Flow | 🟡 Medium | Multi-source BFS/DFS from ocean borders | |
| 18 | Longest Word in Dictionary | 🟡 Medium | Trie / Hash Set prefix validation | |
| 19 | Delete Leaves With a Given Value | 🟡 Medium | Post-order DFS bottom-up pruning |
2.3 Dynamic Programming
| # | Done | Problem | Difficulty | Key Pattern / Topic |
|---|---|---|---|---|
| 1 | Coin Change | 🟡 Medium | Unbounded Knapsack / 1D Bottom-up DP | |
| 2 | Edit Distance | 🟡 Medium | 2D String Alignment DP | |
| 3 | Longest Palindromic Substring | 🟡 Medium | Expand Around Center / 2D DP | |
| 4 | Longest Increasing Subsequence | 🟡 Medium | Patience Sorting + Binary Search () | |
| 5 | Longest Increasing Path in a Matrix | 🔴 Hard | Memoized DFS / Topological Sort on DAG | |
| 6 | Burst Balloons | 🔴 Hard | Interval / Range DP | |
| 7 | Split Array Largest Sum | 🔴 Hard | Binary Search on Answer / Greedy validation | |
| 8 | Longest Arithmetic Subsequence of Given Difference | 🟡 Medium | Hash Map DP | |
| 9 | Maximum Number of Points with Cost | 🟡 Medium | 2D Grid DP with Left/Right rolling max | |
| 10 | Count Square Submatrices with All Ones | 🟡 Medium | 2D Grid DP prefix squares |
2.4 Binary Search & Advanced Structures
| # | Done | Problem | Difficulty | Key Pattern / Topic |
|---|---|---|---|---|
| 1 | Search in Rotated Sorted Array | 🟡 Medium | Modified Binary Search on sorted half | |
| 2 | Koko Eating Bananas | 🟡 Medium | Binary Search on Answer space | |
| 3 | Median of Two Sorted Arrays | 🔴 Hard | Binary Search partition () | |
| 4 | Implement Trie (Prefix Tree) | 🟡 Medium | Trie node implementation | |
| 5 | LRU Cache | 🟡 Medium | Doubly Linked List + Hash Map | |
| 6 | Kth Largest Element in an Array | 🟡 Medium | Quickselect / Min-Heap | |
| 7 | Find Median from Data Stream | 🔴 Hard | Two Balanced Heaps (Max-Heap + Min-Heap) | |
| 8 | Task Scheduler | 🟡 Medium | Greedy Frequency formula / Max-Heap | |
| 9 | Logger Rate Limiter | 🟢 Easy | Hash Map with Timestamp window | |
| 10 | Range Sum Query - Mutable | 🟡 Medium | Segment Tree / Fenwick Tree (Binary Indexed Tree) | |
| 11 | Count of Range Sum | 🔴 Hard | Merge Sort / Fenwick Tree on Prefix Sums | |
| :::info Google Distinctive Topic: Segment Trees & Fenwick Trees (BIT) | ||||
| Segment Tree & Fenwick Tree (Binary Indexed Tree / BIT) problems are heavily favored at Google compared to other FAANG companies. If interviewing for L4/L5+, ensure you understand range queries and point/range updates with logarithmic time complexity. | ||||
| ::: |
3. Google Custom & Real Onsite Interview Problems
The following problems were reported directly from Google onsite, technical screening, and OA loops (including 2025–2026 reports). They emphasize deliberate ambiguity, production-ready edge cases, and scalable algorithmic design.
| # | Done | Problem Title | Interview Round | Core Concept & Description |
|---|---|---|---|---|
| 1 | Restaurant Waitlist Data Structure | L4 Phone Screen | Design an interactive waitlist supporting addGroup, group departure anytime, and seating the best group for an available table size by arrival order and capacity. (Balanced BST / Ordered Map / Priority Queue) | |
| 2 | Number of Lakes on an Island | L4 Phone Screen | Given a 2D grid of water and land, plus a specific starting land coordinate, count fully enclosed lakes inside the island. (Multi-source Flood-Fill / Grid BFS) | |
| 3 | Root an Undirected Acyclic Graph as a Binary Tree | Phone Screen | Given a graph where each node has degree <= 3, determine which node can serve as the root such that the entire tree forms a valid binary tree. (Tree Degree & Center / Layer BFS) | |
| 4 | Alternating-Color Tree Root | Phone Screen | Graph vertices are colored black/white. Find an optimal root vertex such that node colors strictly alternate on every layer/depth. (Bipartite Graph validation / Tree BFS) | |
| 5 | Top-K Most Talkative Users | L4 Onsite | Ingest chat-log files at arbitrary paths and return top users ranked by total word count. Focus on memory limits and streaming execution. (Streaming I/O + Hash Map + Min-Heap) | |
| 6 | Network of Teleporters | L4 Onsite | Determine graph reachability and optimal paths over teleporter portals with directed/bidirectional jumps. (BFS / Shortest Path / Graph Traversal) | |
| 7 | Car Rental Bookings Overlap | Coding Round | Given a batch of rental pickup and return timestamps, find the peak number of concurrent bookings. (Sweep-Line / Difference Array) | |
| 8 | Guess-the-Word Sequence Validation | Coding Round | Given an ordered set of word guesses and character constraints, decide if the sequences form a mutually consistent global ordering. (Topological Sort / Cycle Detection) | |
| 9 | Coin Collection on a Board | 2026 Online Assessment | Maximize coins collected across a grid with obstacles, dynamic movement bounds, and turn penalties. (Grid Dynamic Programming / State Simulation) | |
| 10 | Text Editor / Book-Keeping System | Phone Screen | Implement core text buffer actions: typing, cursor displacement, selection range, and multi-step undo/redo. (Stack / Gap Buffer / Two-Stack Design) | |
| 11 | Lines Needed to Write a String at Given Width | L3 New Grad (2026) | "Given a string and an integer width, return how many lines you can write the string in." Intentionally ambiguous: candidate must proactively clarify wrapping policies, hyphens, word boundaries, and whitespace. (String Greedy / Clarification-First) | |
| 12 | URL Router with Placeholder Patterns | Onsite (Sep 2026) | processHandler registers path patterns (e.g., /users/{userId}/photo/{photoId}); getHandler matches an exact request path to the registered pattern. Handle literal vs wildcard precedence and concurrency. (Trie with Wildcard Nodes) | |
| 13 | Timed-out RPC Calls from Paired Logs | Onsite (Sep 2026) | Start and end RPC log events arrive chronologically with timeout . Identify expired calls, measure open calls against the final recorded timestamp, and sort by start time then call ID. (Hash Map + Priority Queue / Sweep) | |
| 14 | Dependency-Safe Deletion Order | Onsite (Aug 2026) | parents[] specifies a forest, augmented with additional [a before b] ordering constraints. Return the lexicographically smallest child-before-parent sequence, or empty on cycle. (Topological Sort with Min-Heap) | |
| 15 | Trimmed Sliding-Window Means | Technical Screen (Sep 2026) | For each sliding window of fixed size, trim the largest values (accounting for duplicate counts) and output the remaining mean as an irreducible fraction. (Two Balanced Heaps / Ordered Multiset) | |
| 16 | Group Courses into Earliest Possible Rounds | L4 Onsite (Sep 2026) | Round 1 has no prerequisites; course goes in round where is its latest prerequisite's round. Return nested lists sorted within rounds, or empty on cycle. (Parallel Courses / Kahn's Algorithm) | |
| 17 | Deduplicate & Order Batch and Streaming Logs | Phone Screen (Jul 2026) | Deterministic deduplication under first-seen and latest-seen semantics; handles out-of-order records, stale timestamps, and window expiry up to 200,000 ops. (Ordered Dict / LRU Cache / Sliding Window) | |
| 18 | Connected Clusters of 2D Points | Technical Screen (Jul 2026) | Points within Euclidean distance are transitively linked. Must handle duplicate coordinates, exact integer squared distance comparison, and integer overflow. (Union-Find with Spatial Grid Hashing) | |
| 19 | Prefix-Matching Simple Paths in a Labeled Graph | Senior Onsite (Aug 2026) | Count all simple paths whose edge labels spell every non-empty prefix of a query string. Paths may originate at any vertex and must not revisit vertices. (DFS Backtracking with Trie Pruning) | |
| 20 | Players with Fixed Rankings | Coding Round (Aug 2026) | Given players and directed match outcomes, identify all players whose exact global ranking is deterministically fixed by transitive wins and losses. (Transitive Closure / Bitsets / Floyd-Warshall) | |
| 21 | Rectangle Increments on a Grid | Coding Round (Jul 2026) | Apply a large batch of inclusive rectangle updates to an matrix and return the final values for all cells in optimal time. (2D Difference Array + 2D Prefix Sums) | |
| 22 | Three Path Tasks on a Weighted Binary Grid | Senior Onsite (Jul 2026) | Three progressive tasks: (1) Top-to-bottom reachability, (2) Deterministic enumeration of all simple paths, and (3) Minimum-cost path through blocked/weighted cells. (BFS Backtracking Dijkstra) |
4. Google System Design Topics
System design rounds appear at L5+ (and are increasingly woven into senior AI/Cloud engineering loops). These problems demand high-scale distributed systems thinking, failure domains, and modern AI/LLM serving architectures.
| # | Done | System Design Problem | Key Architecture & Focus Areas |
|---|---|---|---|
| 1 | Connection-Degree System for a Social Network | Graph partitioning at scale, degrees of separation (-hop BFS), bi-directional search, caching hot nodes, graph databases. | |
| 2 | Near-Real-Time Logs & Metrics Pipeline | High-throughput distributed ingestion (Kafka/PubSub), stream processing (Flink/Beam), LSM-tree storage, distributed aggregation, query latency SLAs. | |
| 3 | Task Scheduler for Opaque Video-Generation Jobs ("Design Sora") | Asynchronous job queues, GPU worker orchestration, execution timeouts, idempotent retries, backpressure, progress streaming. | |
| 4 | Security Monitoring Framework for Cloud Infrastructure | Real-time threat detection, anomaly detection at multi-petabyte scale, audit trail ingestion, fan-out event routing, alert deduplication. | |
| 5 | Design Google Drive / Maps / YouTube / Search | Distributed blob storage and deduplication, geospatial quadtrees/tile serving, video chunking/CDN delivery, crawler/indexer/ranking pipeline. | |
| 6 | Enterprise AI / ML System Design | LLM inference gateway, dynamic model batching (vLLM/Triton), semantic caching, RAG retrieval pipelines, rate-limiting, and evaluation telemetry. | |
| 7 | Polite Distributed Web Crawler (~10B Pages) | Host-aware crawl frontier, DNS caching, robots.txt enforcement, content fingerprinting/dedup, politeness rate limits, distributed recrawl schedule (Senior Onsite, Aug 2026). | |
| 8 | Music Recommendation System with LLM Agent in the Loop | Multi-stage candidate retrieval (vector similarity + collaborative filtering), cross-encoder re-ranking, LLM conversational agent feedback loop, cold-start handling, offline vs. online A/B testing (Aug 2026). |