Google Coding Interview Questions

Graph, systems thinking, and clean complexity analysis are heavily tested.

#Title
1Two Sum
4Median of Two Sorted Arrays
11Container With Most Water
20Valid Parentheses
22Generate Parentheses
23Merge k Sorted Lists
42Trapping Rain Water
45Jump Game II
50Pow(x, n)
55Jump Game
56Merge Intervals
57Insert Interval
66Plus One
72Edit Distance
76Minimum Window Substring
84Largest Rectangle in Histogram
85Maximal Rectangle
95Unique Binary Search Trees II
97Interleaving String
115Distinct Subsequences
124Binary Tree Maximum Path Sum
128Longest Consecutive Sequence
130Surrounded Regions
131Palindrome Partitioning
132Palindrome Partitioning II
133Clone Graph
134Gas Station
135Candy
139Word Break
140Word Break II
146LRU Cache
147Insertion Sort List
148Sort List
149Max Points on a Line
153Find Minimum in Rotated Sorted Array
154Find Minimum in Rotated Sorted Array II
155Min Stack
162Find Peak Element
164Maximum Gap
166Fraction to Recurring Decimal
173Binary Search Tree Iterator
188Best Time to Buy and Sell Stock IV
198House Robber
200Number of Islands
202Happy Number
207Course Schedule
208Implement Trie (Prefix Tree)
209Minimum Size Subarray Sum
210Course Schedule II
213House Robber II
218The Skyline Problem
221Maximal Square
222Count Complete Tree Nodes
224Basic Calculator
230Kth Smallest Element in a BST
231Power of Two
235Lowest Common Ancestor of a Binary Search Tree
239Sliding Window Maximum
240Search a 2D Matrix II
257Binary Tree Paths
264Ugly Number II
278First Bad Version
289Game of Life
299Bulls and Cows
300Longest Increasing Subsequence
304Range Sum Query 2D - Immutable
309Best Time to Buy and Sell Stock with Cooldown
310Minimum Height Trees
312Burst Balloons
313Super Ugly Number
316Remove Duplicate Letters
318Maximum Product of Word Lengths
319Bulb Switcher
321Create Maximum Number
324Wiggle Sort II
326Power of Three
327Count of Range Sum
329Longest Increasing Path in a Matrix
330Patching Array
332Reconstruct Itinerary
335Self Crossing
336Palindrome Pairs
340Longest Substring with At Most K Distinct Characters
341Flatten Nested List Iterator
345Reverse Vowels of a String
346Moving Average from Data Stream
352Data Stream as Disjoint Intervals
353Design Snake Game
354Russian Doll Envelopes
373Find K Pairs with Smallest Sums
374Guess Number Higher or Lower
378Kth Smallest Element in a Sorted Matrix
380Insert Delete GetRandom O(1)
382Linked List Random Node
384Shuffle an Array
385Mini Parser
386Lexicographical Numbers
388Longest Absolute File Path
389Find the Difference
390Elimination Game
391Perfect Rectangle
392Is Subsequence
393UTF-8 Validation
394Decode String
417Pacific Atlantic Water Flow
419Battleships in a Board
420Strong Password Checker
424Longest Repeating Character Replacement
436Find Right Interval
438Find All Anagrams in a String
441Arranging Coins
448Find All Numbers Disappeared in an Array
451Sort Characters By Frequency
458Poor Pigs
459Repeated Substring Pattern
463Island Perimeter
464Can I Win
465Optimal Account Balancing
466Count The Repetitions
475Heaters
480Sliding Window Median
481Magical String
482License Key Formatting
483Smallest Good Base
485Max Consecutive Ones
486Predict the Winner
496Next Greater Element I
503Next Greater Element II
514Freedom Trail
521Longest Uncommon Subsequence I
522Longest Uncommon Subsequence II
524Longest Word in Dictionary through Deleting
525Contiguous Array
526Beautiful Arrangement
529Minesweeper
530Minimum Absolute Difference in BST
535Encode and Decode TinyURL
540Single Element in a Sorted Array
543Diameter of Binary Tree
546Remove Boxes
547Friend Circles
560Subarray Sum Equals K
563Binary Tree Tilt
621Task Scheduler
630Course Schedule III
643Maximum Average Subarray I
644Maximum Average Subarray II
647Palindromic Substrings
6514 Keys Keyboard
652Find Duplicate Subtrees
653Two Sum IV - Input is a BST
658Find K Closest Elements
659Split Array into Consecutive Subsequences
660Remove 9
662Maximum Width of Binary Tree
664Strange Printer
683K Empty Slots
688Knight Probability in Chessboard
689Maximum Sum of 3 Non-Overlapping Subarrays
690Employee Importance
691Stickers to Spell Word
710Random Pick with Blacklist
759Employee Free Time
760Find Anagram Mappings
761Special Binary String
763Partition Labels
764Largest Plus Sign
765Couples Holding Hands
787Cheapest Flights Within K Stops
813Largest Sum of Averages
815Bus Routes
816Ambiguous Coordinates
817Linked List Components
818Race Car
819Most Common Word
820Short Encoding of Words
822Card Flipping Game
823Binary Trees With Factors
852Peak Index in a Mountain Array
853Car Fleet
854K-Similar Strings
855Exam Room
857Minimum Cost to Hire K Workers
858Mirror Reflection
859Buddy Strings
861Score After Flipping Matrix
862Shortest Subarray with Sum at Least K
875Koko Eating Bananas
890Find and Replace Pattern
891Sum of Subsequence Widths
901Online Stock Span
902Numbers At Most N Given Digit Set
905Sort Array By Parity
906Super Palindromes
907Sum of Subarray Minimums
908Smallest Range I
909Snakes and Ladders
910Smallest Range II
911Online Election
918Maximum Sum Circular Subarray
919Complete Binary Tree Inserter
924Minimize Malware Spread
925Long Pressed Name
926Flip String to Monotone Increasing
927Three Equal Parts
928Minimize Malware Spread II
929Unique Email Addresses
931Minimum Falling Path Sum
932Beautiful Array
933Number of Recent Calls
934Shortest Bridge
939Minimum Area Rectangle
940Distinct Subsequences II
941Valid Mountain Array
942DI String Match
944Delete Columns to Make Sorted
945Minimum Increment to Make Array Unique
946Validate Stack Sequences
947Most Stones Removed with Same Row or Column
948Bag of Tokens
949Largest Time for Given Digits
950Reveal Cards In Increasing Order
951Flip Equivalent Binary Trees
952Largest Component Size by Common Factor
953Verifying an Alien Dictionary
955Delete Columns to Make Sorted II
956Tallest Billboard
958Check Completeness of a Binary Tree
959Regions Cut By Slashes
962Maximum Width Ramp
983Minimum Cost For Tickets