Google Interview Prep (L4 / L5)
Google’s SWE interview is purely DSA-focused for L4 (SDE-2 equivalent). L5+ adds system design. The coding bar is higher than most companies — expect medium-hard problems with layered follow-ups. They evaluate HOW you think, not just whether you land the answer.
The single most important thing in the data below: Google asks graphs more than any other company on this site. If you skip graph preparation you will almost certainly fail.
Interview Process
| Stage | Duration | Focus |
|---|---|---|
| Google Hiring Assessment (GHA) | Online | 2 coding problems, medium |
| Recruiter Screen | 30 min | Background, target level, prep timeline |
| Phone Screen | 45 min | 1-2 DSA problems, medium-hard |
| Onsite Round 1 | 45 min | Coding, medium-hard |
| Onsite Round 2 | 45 min | Coding, medium-hard |
| Onsite Round 3 | 45 min | Coding, hard with follow-ups |
| Googleyness | 45 min | Behavioural: collaboration, ambiguity |
| System Design (L5+ only) | 45 min | Large-scale distributed design |
No system design for L4 in most cases — it is all coding. L5 adds one design round and the Googleyness round shifts toward leading without authority. The hiring committee reviews every round together, so one strong round does not rescue a weak one.
What Google Actually Tests
Derived from 2344 reported Google-tagged problems. Difficulty mix:
| Difficulty | Count | Share |
|---|---|---|
| Easy | 616 | 26% |
| Medium | 1223 | 52% |
| Hard | 505 | 22% |
Hard problems are a real but minority share. Medium fluency wins most rounds; Hard shows up late in the loop.
Where those problems fall by pattern:
| Rank | Pattern | Problems | Share of list |
|---|---|---|---|
| 1 | Arrays & Hashing | 480 | 20% |
| 2 | Dynamic Programming | 345 | 15% |
| 3 | Trees | 209 | 9% |
| 4 | Graphs | 181 | 8% |
| 5 | Strings | 174 | 7% |
| 6 | Sliding Window & Two Pointers | 157 | 7% |
| 7 | Binary Search | 140 | 6% |
| 8 | Math & Bit Manipulation | 140 | 6% |
| 9 | Intervals, Greedy & Sorting | 134 | 6% |
| 10 | Heap / Priority Queue | 88 | 4% |
Google Signature Problems
These rank high on Google’s list but are reported by few other companies — the questions that are distinctively theirs rather than generic interview classics. The last column is how many of the 142 companies on this site report each one.
| # | Problem | Pattern | Difficulty | Also asked at | Link |
|---|---|---|---|---|---|
| 1 | Add Two Numbers | Linked List | Medium | 31 of 142 | Solve → |
| 2 | Reverse Integer | Math | Medium | 19 of 142 | Solve → |
| 3 | Next Permutation | Two Pointers | Medium | 28 of 142 | Solve → |
| 4 | Split Array Largest Sum | Prefix Sum + Binary Search | Hard | 19 of 142 | Solve → |
| 5 | 4Sum | Two Pointers | Medium | 18 of 142 | Solve → |
| 6 | Largest Rectangle in Histogram | Range Query + Monotonic Stack | Hard | 27 of 142 | Solve → |
| 7 | Minimum Number of Increments on Subarrays to Form a Target Array | Monotonic Stack + Greedy | Hard | 7 of 142 | LeetCode → |
| 8 | Number of Visible People in a Queue | Monotonic Stack | Hard | 15 of 142 | Solve → |
| 9 | Russian Doll Envelopes | LIS + Binary Search | Hard | 11 of 142 | Solve → |
| 10 | Maximal Rectangle | Monotonic Stack + DP | Hard | 15 of 142 | Solve → |
| 11 | Fruit Into Baskets | Sliding Window | Medium | 13 of 142 | Solve → |
| 12 | Two Sum II - Input Array Is Sorted | Binary Search + Two Pointers | Medium | 16 of 142 | Solve → |
| 13 | Count Number of Trapezoids II | Geometry | Hard | 2 of 142 | LeetCode → |
| 14 | Zero Array Transformation I | Prefix Sum | Medium | 4 of 142 | LeetCode → |
If you are short on time, these carry more Google-specific signal per hour than the universal top-100 lists.
Reported in the Last Six Months
The recency-filtered slice of Google’s list, ranked by how often each was reported. Expect heavy overlap with the all-time classics — that overlap is the point, it means these stay in rotation.
| # | Problem | Pattern | Difficulty | Link |
|---|---|---|---|---|
| 1 | Two Sum | Hash Table + Array | Easy | Solve → |
| 2 | Add Two Numbers | Linked List | Medium | Solve → |
| 3 | Palindrome Number | Math | Easy | Solve → |
| 4 | 3Sum | Two Pointers | Medium | Solve → |
| 5 | Trapping Rain Water | Monotonic Stack + Two Pointers | Hard | Solve → |
| 6 | Longest Substring Without Repeating Characters | Sliding Window | Medium | Solve → |
| 7 | Median of Two Sorted Arrays | Divide and Conquer + Binary Search | Hard | Solve → |
| 8 | Best Time to Buy and Sell Stock | DP | Easy | Solve → |
| 9 | Concatenation of Array | Simulation + Array | Easy | Solve → |
| 10 | Longest Common Prefix | Trie | Easy | Solve → |
| 11 | Longest Consecutive Sequence | Union-Find | Medium | Solve → |
| 12 | Longest Palindromic Substring | Manacher + Two Pointers | Medium | Solve → |
| 13 | Reverse Integer | Math | Medium | Solve → |
| 14 | Container With Most Water | Greedy + Two Pointers | Medium | Solve → |
| 15 | Majority Element | Boyer-Moore + Divide and Conquer | Easy | Solve → |
System Design (HLD) Problems Asked at Google
| # | Problem | Difficulty | Link |
|---|---|---|---|
| 1 | Key-Value Store | Beginner | Read → |
| 2 | Google Docs (Collaborative Editing) | Advanced | Read → |
| 3 | YouTube / Netflix (Video Streaming) | Advanced | Read → |
| 4 | Rate Limiter | Beginner | Read → |
| 5 | URL Shortener | Beginner | Read → |
| 6 | Search Autocomplete | Intermediate | Read → |
| 7 | Web Crawler | Intermediate | Read → |
| 8 | News Aggregator (Google News) | Intermediate | Read → |
| 9 | Notification System | Intermediate | Read → |
| 10 | Distributed Cache | Intermediate | Read → |
DSA Problems Asked at Google
76 problems across 12 pattern groups. Each group is allocated in proportion to its real share of Google’s tagged list, then filled with the highest-frequency problems in that group — so the weight here matches the distribution above rather than burying graph and tree work under the usual array classics.
Arrays & Hashing
Prefix sums, counting, and grid walks. The warm-up round, and the one people get careless on. Showing the top 14 of 19 on the list.
| # | Problem | Pattern | Difficulty | Link |
|---|---|---|---|---|
| 1 | Two Sum | Hash Table + Array | Easy | Solve → |
| 2 | Palindrome Number | Math | Easy | Solve → |
| 3 | Create Hello World Function | Implementation | Easy | LeetCode → |
| 4 | Recyclable and Low Fat Products | Database | Easy | LeetCode → |
| 5 | Reverse Integer | Math | Medium | Solve → |
| 6 | Subarray Sum Equals K | Prefix Sum | Medium | Solve → |
| 7 | Spiral Matrix | Simulation + Matrix | Medium | Solve → |
| 8 | Concatenation of Array | Simulation + Array | Easy | Solve → |
| 9 | Add Two Integers | Math | Easy | LeetCode → |
| 10 | Rotate Image | Matrix + Math | Medium | Solve → |
| 11 | Plus One | Math + Array | Easy | Solve → |
| 12 | Combine Two Tables | Database | Easy | LeetCode → |
| 13 | Max Consecutive Ones | Array | Easy | Solve → |
| 14 | Viewers Turned Streamers | Database | Hard | LeetCode → |
Dynamic Programming
State definition is the whole battle. Say the recurrence out loud before you write the table. Showing the top 14 of 15 on the list.
| # | Problem | Pattern | Difficulty | Link |
|---|---|---|---|---|
| 15 | Trapping Rain Water | Monotonic Stack + Two Pointers | Hard | Solve → |
| 16 | Best Time to Buy and Sell Stock | DP | Easy | Solve → |
| 17 | Maximum Subarray | Divide and Conquer + DP | Medium | Solve → |
| 18 | Climbing Stairs | Memoization + DP | Easy | Solve → |
| 19 | Generate Parentheses | Bracket Sequences + Backtracking | Medium | Solve → |
| 20 | Split Array Largest Sum | Prefix Sum + Binary Search | Hard | Solve → |
| 21 | House Robber | DP | Medium | Solve → |
| 22 | Jump Game | Greedy + DP | Medium | Solve → |
| 23 | Pascal’s Triangle | DP | Easy | Solve → |
| 24 | Minimum Number of Increments on Subarrays to Form a Target Array | Monotonic Stack + Greedy | Hard | LeetCode → |
| 25 | Russian Doll Envelopes | LIS + Binary Search | Hard | Solve → |
| 26 | Longest Increasing Subsequence | LIS + Binary Search | Medium | Solve → |
| 27 | Regular Expression Matching | DP | Hard | Solve → |
| 28 | Maximal Square | DP | Medium | Solve → |
Sliding Window & Two Pointers
Linear-time scans over arrays and strings. High volume, low variance — these should be automatic. Showing the top 14 of 15 on the list.
| # | Problem | Pattern | Difficulty | Link |
|---|---|---|---|---|
| 29 | Longest Substring Without Repeating Characters | Sliding Window | Medium | Solve → |
| 30 | 3Sum | Two Pointers | Medium | Solve → |
| 31 | Merge Sorted Array | Two Pointers | Easy | Solve → |
| 32 | Merge Strings Alternately | Two Pointers | Easy | Solve → |
| 33 | Container With Most Water | Greedy + Two Pointers | Medium | Solve → |
| 34 | Remove Duplicates from Sorted Array | Two Pointers | Easy | Solve → |
| 35 | Next Permutation | Two Pointers | Medium | Solve → |
| 36 | Move Zeroes | Two Pointers | Easy | Solve → |
| 37 | Remove Element | Two Pointers | Easy | Solve → |
| 38 | 4Sum | Two Pointers | Medium | Solve → |
| 39 | Rotate Array | Two Pointers | Medium | Solve → |
| 40 | Happy Number | Floyd Cycle + Two Pointers | Easy | Solve → |
| 41 | Longest Repeating Character Replacement | Sliding Window | Medium | Solve → |
| 42 | Sort Colors | Bubble Sort + Quicksort | Medium | Solve → |
Binary Search
Half of these are binary search on the answer, not on an array. Learn to spot the monotonic predicate. All 9 on the list.
| # | Problem | Pattern | Difficulty | Link |
|---|---|---|---|---|
| 43 | Median of Two Sorted Arrays | Divide and Conquer + Binary Search | Hard | Solve → |
| 44 | Koko Eating Bananas | Binary Search | Medium | Solve → |
| 45 | Search in Rotated Sorted Array | Binary Search | Medium | Solve → |
| 46 | Find Peak Element | Binary Search | Medium | Solve → |
| 47 | Search Insert Position | Binary Search | Easy | Solve → |
| 48 | Single Element in a Sorted Array | Binary Search | Medium | Solve → |
| 49 | Find First and Last Position of Element in Sorted Array | Binary Search | Medium | Solve → |
| 50 | Sqrt(x) | Newton’s Method + Binary Search | Easy | Solve → |
| 51 | Binary Search | Binary Search | Easy | Solve → |
Strings
Parsing, transformation, and in-place edits. Clarify the character set and whitespace rules before you start. All 4 on the list.
| # | Problem | Pattern | Difficulty | Link |
|---|---|---|---|---|
| 52 | Roman to Integer | Math + Hash Table | Easy | Solve → |
| 53 | Valid Anagram | Sorting + Hash Table | Easy | Solve → |
| 54 | Group Anagrams | Sorting + Hash Table | Medium | Solve → |
| 55 | Zigzag Conversion | String | Medium | Solve → |
Graphs
Traversal, connectivity, ordering, and shortest paths. The hardest bucket to fake — either you have drilled it or you have not. All 3 on the list.
| # | Problem | Pattern | Difficulty | Link |
|---|---|---|---|---|
| 56 | Longest Consecutive Sequence | Union-Find | Medium | Solve → |
| 57 | Number of Islands | Union-Find + BFS | Medium | Solve → |
| 58 | Course Schedule | DAG + Topological Sort | Medium | Solve → |
Tries & String Search
Prefix structures and substring matching. Common wherever autocomplete or search is part of the product. All 3 on the list.
| # | Problem | Pattern | Difficulty | Link |
|---|---|---|---|---|
| 59 | Longest Common Prefix | Trie | Easy | Solve → |
| 60 | Longest Palindromic Substring | Manacher + Two Pointers | Medium | Solve → |
| 61 | Find the Index of the First Occurrence in a String | Boyer–Moore String-Search Algorithm + KMP | Easy | Solve → |
Backtracking
Enumerate with pruning. Interviewers look for a clean choose, explore, unchoose loop and a real complexity bound. All 3 on the list.
| # | Problem | Pattern | Difficulty | Link |
|---|---|---|---|---|
| 62 | N-Queens | Algorithm X + Backtracking | Hard | Solve → |
| 63 | Letter Combinations of a Phone Number | Backtracking | Medium | Solve → |
| 64 | Subsets | Backtracking + Bit Manipulation | Medium | Solve → |
Design (Coding)
Build a data structure to a spec. Graded on API shape and the complexity of each operation, not just correctness. All 3 on the list.
| # | Problem | Pattern | Difficulty | Link |
|---|---|---|---|---|
| 65 | LRU Cache | Doubly Linked List + Design | Medium | Solve → |
| 66 | Logger Rate Limiter | Data Stream + Design | Easy | Solve → |
| 67 | Find Median from Data Stream | Data Stream + Design | Hard | Solve → |
Heap / Priority Queue
Top-k, streaming medians, and scheduling. Usually the difference between a passing and a timing-out solution. All 3 on the list.
| # | Problem | Pattern | Difficulty | Link |
|---|---|---|---|---|
| 68 | Meeting Rooms II | Prefix Sum + Heap | Medium | Solve → |
| 69 | Top K Frequent Elements | Quickselect + Bucket Sort | Medium | Solve → |
| 70 | Kth Largest Element in an Array | Quickselect + Divide and Conquer | Medium | Solve → |
Stack & Monotonic Stack
Nearest-greater, parsing, and span problems. The monotonic variant is the one people miss. All 3 on the list.
| # | Problem | Pattern | Difficulty | Link |
|---|---|---|---|---|
| 71 | Valid Parentheses | Bracket Sequences + Stack | Easy | Solve → |
| 72 | Decode String | Stack | Medium | Solve → |
| 73 | Number of Visible People in a Queue | Monotonic Stack | Hard | Solve → |
Linked List
Pointer surgery under time pressure. Draw the nodes before you write the reassignments. All 3 on the list.
| # | Problem | Pattern | Difficulty | Link |
|---|---|---|---|---|
| 74 | Add Two Numbers | Linked List | Medium | Solve → |
| 75 | Merge Two Sorted Lists | Linked List | Easy | Solve → |
| 76 | Reverse Linked List | Linked List | Easy | Solve → |
Google’s Favourite Patterns (Ranked)
| Rank | Pattern | Frequency | Problems on list | Start with |
|---|---|---|---|---|
| 1 | Arrays & Hashing | Very High | 19 (21%) | Two Sum, Palindrome Number, Create Hello World Function |
| 2 | Dynamic Programming | High | 15 (17%) | Trapping Rain Water, Best Time to Buy and Sell Stock, Maximum Subarray |
| 3 | Sliding Window & Two Pointers | High | 15 (17%) | Longest Substring Without Repeating Characters, 3Sum, Merge Sorted Array |
| 4 | Binary Search | Medium-High | 9 (10%) | Median of Two Sorted Arrays, Koko Eating Bananas, Search in Rotated Sorted Array |
| 5 | Strings | Medium-High | 4 (4%) | Roman to Integer, Valid Anagram, Group Anagrams |
| 6 | Graphs | Medium-High | 3 (3%) | Longest Consecutive Sequence, Number of Islands, Course Schedule |
| 7 | Tries & String Search | Medium | 3 (3%) | Longest Common Prefix, Longest Palindromic Substring, Find the Index of the First Occurrence in a String |
| 8 | Backtracking | Medium | 3 (3%) | N-Queens, Letter Combinations of a Phone Number, Subsets |
| 9 | Design (Coding) | Medium | 3 (3%) | LRU Cache, Logger Rate Limiter, Find Median from Data Stream |
| 10 | Heap / Priority Queue | Medium | 3 (3%) | Meeting Rooms II, Top K Frequent Elements, Kth Largest Element in an Array |
How to read this: the top three rows are where your preparation hours should go. A candidate fluent in Arrays & Hashing, Dynamic Programming, Sliding Window & Two Pointers covers the bulk of what Google actually asks. The rest is insurance for the one round that goes somewhere unexpected.
Google-Specific Questions Reported in 2024-2026
These are custom and variant problems reported from actual Google loops. They do not appear verbatim on LeetCode, which is exactly the point — Google prefers twists on familiar patterns.
| # | Problem Description | Pattern | Source |
|---|---|---|---|
| 1 | Binary tree with binary values — count “islands” (connected components of 1s) | Tree DFS | New Grad 2026 |
| 2 | Encode and decode a directed graph (serialisation with cycle handling) | Graph DFS + Serialisation | L4 Feb 2025 |
| 3 | Reach a target volume with N water jugs (fill/empty/pour operations) | BFS state space | L4 Feb 2025 |
| 4 | Alice and Bob minimise combined travel cost to a destination | Multi-source Dijkstra | L4 Feb 2025 |
| 5 | Find the node that, made root, converts a graph to a binary tree (max 3 edges/node) | Tree / Graph | L4 Phone Screen 2025 |
| 6 | Find all critical edges in a connected graph (bridges) | Tarjan’s algorithm | L4 Bangalore 2025 |
| 7 | Minimum health required to reach a destination in a weighted graph | Graph DP / Dijkstra | L4 Onsite 2025 |
| 8 | Network of teleporters, some broken — find reachable nodes | Graph BFS/DFS | L4 2025 |
| 9 | Given match results, determine player rankings (full ordering) | Modified topological sort | L4 India 2025 |
| 10 | 108 cards (4 sets of 27) — can 12 cards split into 4 winning groups of 3? | Backtracking / DP | L4 India 2025 |
| 11 | Minimum threshold distance for a path from source to target | Binary search + Dijkstra | L4 India 2025 |
| 12 | Minimum cost to cut all leaf nodes from root (weighted tree edges) | Tree DP | L4 2025 |
| 13 | Alice and Bob share a cab — minimise distinct roads crossed | Graph (Steiner tree variant) | L4 USA 2025 |
| 14 | Find a valid path visiting all nodes in an undirected graph | Hamiltonian path / DFS | L4 Cloud 2025 |
| 15 | Predict the next word from given sentences (design the API) | Trie / HashMap | L4 MLE India 2025 |
| 16 | Delete storage parts in a valid order (no children when deleted) | Topological sort, leaf removal | L4 Hyderabad 2025 |
| 17 | Find a path between restricted edges as edges are added one by one | Union-Find / BFS | Off-campus |
| 18 | Post-order DFS traversal with a hard follow-up | Tree DFS | L4 Warsaw 2025 |
| 19 | Given initial and final state, check reachability | BFS/DFS state space | L4 India 2025 |
| 20 | Routers broadcast within distance d — does the destination get the message? | Graph BFS | L3 Oct 2024 |
More Reported Google Variants (2023-2026)
Additional specific problems reported by candidates across LeetCode discuss, GeeksforGeeks, and interview blogs, paraphrased.
| # | Problem Description | Pattern | Round |
|---|---|---|---|
| 21 | Where to cut a rectangular cake so both halves have equal area (return a double) | Binary search on answer | Onsite |
| 22 | Assign patients (arrival + duration) to N rooms; return the busiest room | Heap / interval scheduling | Onsite Hard |
| 23 | Symbolic algebra: simplify c-(b-(d+e)) with nested parens and sign flips |
Stack parsing | Onsite |
| 24 | N CPUs, M task durations — minimum makespan; then fewest CPUs to still hit it | Heap / binary search on answer | DSA |
| 25 | N×M grid — count unlock-pattern paths of length >= L (8 directions, no revisits) | Backtracking / DFS | DSA |
| 26 | Sum of distances from each tree node to all others — optimise O(n²) to O(n) | Tree DP (rerooting) | Onsite |
| 27 | Vertices own intervals, edges connect overlapping ones — count spanning trees | Union-Find / Matrix-Tree | Onsite |
| 28 | Shortest path avoiding a set of forbidden nodes | Graph / BFS | Onsite |
| 29 | Undirected graph forming one ring — print every ring traversal from each node | Cycle DFS | Onsite |
| 30 | Water pours from each grid cell — find where it settles | Grid DP / memoised DFS | Onsite |
| 31 | Power propagation through a 3D lattice from source nodes to targets | Multi-source BFS (3D) | Onsite |
| 32 | IP-range-to-location file — which city does a query IP belong to? Batch follow-up | Binary search / interval | Coding |
| 33 | Stream of timestamped messages — keep only the last 10 time units | Sliding window / deque | Coding |
| 34 | Row of L/R pieces that slide without jumping — can config A become target B? | Two pointers / greedy | Coding |
| 35 | Two strings — is there a common cut so prefix(A) + suffix(B) is a palindrome? | String / palindrome | Phone Screen |
| 36 | Boolean stream: setTrue(i), setFalse(i), setAllTrue(), getIndex(i) optimally | Design / lazy propagation | Onsite |
| 37 | Leaderboard: updateEntry(name), getEntryFromRank(rank) efficiently | Design / order-statistics tree | Onsite |
| 38 | Lexicographically smallest subsequence of length exactly k | Greedy / monotonic stack | Onsite |
| 39 | Grid of people and bikes — nearest bike for each person, handle ties | BFS / grid matching | Onsite |
| 40 | Infinite chessboard — min knight moves to (x,y); follow-up adds forbidden cells | Bidirectional BFS | Onsite |
| 41 | Invertible mapping F(x,y)=z and inverse F(z)=(x,y) | Maths / Cantor pairing | Onsite |
| 42 | 1M numbers, many (left,right) queries — max within each range | Sparse table / segment tree | Onsite |
| 43 | Thief crosses a room avoiding circular sensors — is a clear path possible? | Union-Find / geometry | Onsite |
| 44 | Bench of n seats — each arrival picks the seat maximising distance to neighbours | Heap / greedy | Onsite |
| 45 | 0/1 string — min splits so each part is a power of 5 in binary, no leading zeros | DP (string partition) | Onsite |
| 46 | I/D pattern — smallest number with non-repeating digits 1-9 following it | Greedy / stack | Phone Screen |
| 47 | Tree with edge weights, k leaves — min-weight deletion so no two leaves connect | Tree DP / min-cut | DSA |
| 48 | Flights (src, dst, arrival, departure) — shortest route arriving before a deadline | Time-constrained Dijkstra | DSA |
| 49 | Ship with fuel K — travel (K-1) or rest (K+1), H mandatory holidays, maximise distance | DP (3D state) | DSA |
| 50 | Read strings from n files — max count of elements shared by at least two files | Hashing / counting | Coding |
| 51 | Longest substring that appears more than once | Suffix array / rolling hash | Coding |
| 52 | Decode a nested encoded string like 3[a2[c]] |
Stack / recursion | Coding |
| 53 | Tree stored as array plus indices to erase — remove nodes and descendants in place | Array / tree compaction | Coding |
Googleyness Questions (Behavioural)
| # | Question |
|---|---|
| 1 | Tell me about a time you disagreed with a teammate. How did you resolve it? |
| 2 | Tell me about a time you had to work with ambiguous requirements. |
| 3 | Tell me about a time you simplified a complex system or process. |
| 4 | Tell me about a time you had to push back on a stakeholder. |
| 5 | Tell me about a technical decision you made that turned out to be wrong. What did you do? |
| 6 | Tell me about a time you helped someone on your team grow. |
| 7 | How do you handle disagreements in code reviews? |
| 8 | Tell me about a time you delivered under a tight deadline with incomplete information. |
For L4: collaboration, growth mindset, handling ambiguity. For L5: leadership without authority, influencing across teams, setting technical direction.
14-Day Prep Plan
Built from the pattern ranking above, so the heaviest topics get the most time.
| Day | Focus | Problems |
|---|---|---|
| 1 | Arrays & Hashing (part 1) | Two Sum, Palindrome Number, Create Hello World Function |
| 2 | Arrays & Hashing (part 2) | Recyclable and Low Fat Products, Reverse Integer, Subarray Sum Equals K |
| 3 | Dynamic Programming (part 1) | Trapping Rain Water, Best Time to Buy and Sell Stock, Maximum Subarray |
| 4 | Dynamic Programming (part 2) | Climbing Stairs, Generate Parentheses, Split Array Largest Sum |
| 5 | Sliding Window & Two Pointers (part 1) | Longest Substring Without Repeating Characters, 3Sum, Merge Sorted Array |
| 6 | Sliding Window & Two Pointers (part 2) | Merge Strings Alternately, Container With Most Water, Remove Duplicates from Sorted Array |
| 7 | Binary Search | Median of Two Sorted Arrays, Koko Eating Bananas, Search in Rotated Sorted Array |
| 8 | Strings | Roman to Integer, Valid Anagram, Group Anagrams |
| 9 | Graphs | Longest Consecutive Sequence, Number of Islands, Course Schedule |
| 10 | Tries & String Search | Longest Common Prefix, Longest Palindromic Substring, Find the Index of the First Occurrence in a String |
| 11 | Backtracking | N-Queens, Letter Combinations of a Phone Number, Subsets |
| 12 | Mock round | Two problems in 45 minutes, timed, no hints. Simulate the real round. |
| 13 | Revision | Redo the problems you failed or needed a hint on. |
| 14 | Light review + rest | Re-read your pattern notes. Sleep early. |
Tips for Google Interviews
- Think out loud. Google grades your thought process. Start with brute force, state the complexity, then optimise. Silence gives the interviewer no signal to write down.
- Ask clarifying questions. “Can the input be empty? Are there negatives? Is the graph connected?” This reads as maturity, not hesitation.
- Expect follow-ups. The pattern is: solve the base problem in 15 minutes, then the interviewer adds a constraint. Budget time for the second and third version.
- Practice in plain text. Google interviews run in a shared doc with no autocomplete and no syntax highlighting. Write code without an IDE at least a few times.
- Say the edge cases before you are asked. Empty input, single element, duplicates, integer overflow, disconnected graph.
- Consistency beats brilliance. The hiring committee reads all rounds together. Four solid rounds beat one spectacular and one poor.
- Graphs are non-negotiable. They are the top bucket in the data above by a wide margin. Drill BFS, DFS, topological sort, union-find, and Dijkstra until they are muscle memory.