Google Advanced Coding Interview Questions
138 advanced coding problems are tagged as asked at Google in interviews and online assessments reported by candidates. By difficulty they split into 0 basic, 0 intermediate and 137 advanced. The topics they most often combine with are Array, String, Math, Hash Table.
Reported questions change over time and are not a guarantee of what you will be asked, so use the list to see which patterns Google tends to test. For each problem, practise explaining your approach, its time and space cost and the edge cases before you write the code; every problem opens in an editor that runs your code against test cases.
Coding problems
- Longest Increasing Subsequence (Advanced)
- Trapping Rain Water (Advanced)
- Largest Rectangle in Histogram (Advanced)
- Longest Common Subsequence (Advanced)
- Edit Distance (Advanced)
- Coin Change Ways (Advanced)
- Target Sum (Advanced)
- Longest Valid Parentheses (Advanced)
- Search in a Rotated Sorted Array (Advanced)
- Candy Distribution (Advanced)
- Max Chunks to Make Sorted (Advanced)
- Sum of Subarray Minimums (Advanced)
- Maximum Width Ramp (Advanced)
- Valid Parenthesis With Wildcards (Advanced)
- Minimum Cost to Merge Stones (Advanced)
- Tree Nodes at Distance K (Advanced)
- Tree Diameter (Advanced)
- Minimum Window Substring (Advanced)
- Shortest Palindrome (Advanced)
- Number of Digit One (Advanced)
- Longest Arithmetic Subsequence (Advanced)
- Network Delay Time (Advanced)
- Sum of Subarray Minimums (Advanced)
- Maximum Subsequence Score (Advanced)
- Maximum Number of Points With Cost (Advanced)
- Reconstruct Itinerary (Advanced)
- Walls and Gates Distance (Advanced)
- Minimum Cost Tickets (Advanced)
- Binary Tree Maximum Path Sum (Advanced)
- Boundary of Binary Tree (Advanced)
- Remove Zero-Sum Consecutive Nodes (Advanced)
- Maximum Sum BST in Binary Tree (Advanced)
- Sum of Distances in Tree (Advanced)
- Swim in Rising Water (Advanced)
- Jump Game IV (Advanced)
- Similar String Groups (Advanced)
- Alien Dictionary Order (Advanced)
- Shortest Path Visiting All Nodes (Advanced)
- Reachable Nodes in Subdivided Graph (Advanced)
- Largest Color Value in a Directed Graph (Advanced)
- Shortest Distance From All Buildings (Advanced)
- Regular Expression Matching (Advanced)
- Burst Balloons (Advanced)
- Scramble String (Advanced)
- Minimum Removals to Make Mountain Array (Advanced)
- Profitable Schemes (Advanced)
- Freedom Trail (Advanced)
- Strange Printer (Advanced)
- Remove Boxes (Advanced)
- Minimum Difficulty of a Job Schedule (Advanced)
- Tallest Billboard (Advanced)
- Jump Game V (Advanced)
- Maximum Students Taking Exam (Advanced)
- Can I Win (Advanced)
- Longest Increasing Path in a Matrix (Advanced)
- Maximum Value of K Coins From Piles (Advanced)
- Count Special Subsequences (Advanced)
- Painting the Walls (Advanced)
- Longest Duplicate Substring (Advanced)
- Distinct Echo Substrings (Advanced)
- Valid Number (Advanced)
- Integer to English Words (Advanced)
- Word Search II Count (Advanced)
- Basic Calculator (Advanced)
- Remove Duplicate Letters (Advanced)
- Number of Visible People in a Queue (Advanced)
- IPO (Advanced)
- Process Tasks Using Servers (Advanced)
- Maximum Performance of a Team (Advanced)
- Minimum Increments to Form Target Array (Advanced)
- Minimum Interval to Include Each Query (Advanced)
- Sliding Window Maximum Values (Advanced)
- Substring With Concatenation of All Words (Advanced)
- Shortest Subarray to Remove to Make Sorted (Advanced)
- Median of Two Sorted Arrays (Advanced)
- Nth Magical Number (Advanced)
- Kth Smallest Number in Multiplication Table (Advanced)
- Poor Pigs (Advanced)
- N-Queens Count (Advanced)
- Sudoku Solver (Advanced)
Related
Frequently asked questions
How should I use the Google problem list?
Start with the basic problems, then the intermediate and advanced ones, and note which topics repeat. Solve each under a timer, then read the explanation.
Are these the exact Google interview questions?
They are problems candidates reported being asked. Companies rotate questions, so use them to learn the patterns, not to predict the exact question.