← Google roles

Interview question tracker

Google Coding Interview Questions — Last 3 months

Practice 436 coding questions from Google company-tagged LeetCode lists in the source’s last 3 months reporting window. Explore reported interview questions and track your progress.

Company-wide data from Fahad7177-jeh/leetcode-company-wise-questions; see its AGPL-3.0 license. All-time questions also use dataengineervishal/leetcode-companywise-questions (MIT license).

Reporting periods reflect source data, not verified interview dates. Questions can recur; inclusion does not guarantee they will appear in your interview.

Updated weekly · Latest source check: ⓘLatest successful check of the sources used by this company. A check does not necessarily mean the questions changed.

One question at a time.

Top questions 436

DoneQuestionLeetCode
Two SumSolve
Add Two NumbersSolve
Longest Common PrefixSolve
Palindrome NumberSolve
3SumSolve
Best Time to Buy and Sell StockSolve
Container With Most WaterSolve
Decode StringSolve
Find the Index of the First Occurrence in a StringSolve
Longest Consecutive SequenceSolve
Longest Palindromic SubstringSolve
Longest Substring Without Repeating CharactersSolve
Majority ElementSolve
Maximum SubarraySolve
Median of Two Sorted ArraysSolve
Meeting Rooms IISolve
Merge Sorted ArraySolve
Roman to IntegerSolve
Subarray Sum Equals KSolve
Trapping Rain WaterSolve
Add BinarySolve
Add Two IntegersSolve
Binary SearchSolve
Climbing StairsSolve
Coin Change IISolve
Combine Two TablesSolve
Count PrimesSolve
Create Hello World FunctionSolve
Find N Unique Integers Sum up to ZeroSolve
Generate ParenthesesSolve
Happy NumberSolve
House RobberSolve
Merge IntervalsSolve
Merge Two Sorted ListsSolve
Move ZeroesSolve
Next PermutationSolve
Number of Visible People in a QueueSolve
Plus OneSolve
Recyclable and Low Fat ProductsSolve
Remove Duplicates from Sorted ArraySolve
Remove ElementSolve
Reverse IntegerSolve
Reverse Linked ListSolve
Rotate ArraySolve
Search in Rotated Sorted ArraySolve
Single NumberSolve
Spiral MatrixSolve
Split Array Largest SumSolve
Sqrt(x)Solve
Top K Frequent ElementsSolve
Valid ParenthesesSolve
3Sum ClosestSolve
4SumSolve
Apply SubstitutionsSolve
Best Time to Buy and Sell Stock IISolve
Binary Tree Level Order TraversalSolve
Binary Tree Zigzag Level Order TraversalSolve
Calculate Money in Leetcode BankSolve
CandySolve
Check If All 1's Are at Least Length K Places AwaySolve
Check if Array Is Sorted and RotatedSolve
Concatenation of ArraySolve
Contains DuplicateSolve
Copy List with Random PointerSolve
Course ScheduleSolve
Course Schedule IISolve
Edit DistanceSolve
Employee BonusSolve
Employees Earning More Than Their ManagersSolve
Find All Numbers Disappeared in an ArraySolve
Find Customer RefereeSolve
Find First and Last Position of Element in Sorted ArraySolve
Find Peak ElementSolve
Find the DifferenceSolve
First Missing PositiveSolve
Fruit Into BasketsSolve
Gas StationSolve
Group AnagramsSolve
Implement Stack using QueuesSolve
Insert Delete GetRandom O(1)Solve
Insert IntervalSolve
Intersection of Two ArraysSolve
Jump GameSolve
Jump Game IISolve
Koko Eating BananasSolve
Kth Largest Element in an ArraySolve
Largest Rectangle in HistogramSolve
Largest Triangle AreaSolve
Longest Common SubsequenceSolve
Longest Increasing SubsequenceSolve
Longest Repeating Character ReplacementSolve
LRU CacheSolve
Max Consecutive OnesSolve
Maximal SquareSolve
Maximum Number of Words You Can TypeSolve
Merge k Sorted ListsSolve
Merge Strings AlternatelySolve
Middle of the Linked ListSolve
Minimum Number of Increments on Subarrays to Form a Target ArraySolve
Minimum Window SubstringSolve
N-QueensSolve
Next Greater Numerically Balanced NumberSolve
Number of IslandsSolve
Palindrome Linked ListSolve
Palindrome PartitioningSolve
Partition Equal Subset SumSolve
Pascal's TriangleSolve
Pow(x, n)Solve
Power of TwoSolve
Product of Array Except SelfSolve
Random Pick with WeightSolve
Regular Expression MatchingSolve
Reverse Nodes in k-GroupSolve
Reverse StringSolve
Reverse Vowels of a StringSolve
Rotate ImageSolve
Rotate ListSolve
Rotting OrangesSolve
Running Sum of 1d ArraySolve
Russian Doll EnvelopesSolve
Search a 2D Matrix IISolve
Search Insert PositionSolve
Second Highest SalarySolve
Single Element in a Sorted ArraySolve
Sort ColorsSolve
Squares of a Sorted ArraySolve
Sudoku SolverSolve
Target SumSolve
Text JustificationSolve
The Latest Time to Catch a BusSolve
Ugly NumberSolve
Unique PathsSolve
Valid AnagramSolve
Valid PalindromeSolve
Valid SudokuSolve
Water BottlesSolve
Wildcard MatchingSolve
Word SearchSolve
132 PatternSolve
Accounts MergeSolve
Add DigitsSolve
Add to Array-Form of IntegerSolve
Adjacent Increasing Subarrays Detection ISolve
Adjacent Increasing Subarrays Detection IISolve
All Ancestors of a Node in a Directed Acyclic GraphSolve
Array Prototype LastSolve
Article Views ISolve
Assign CookiesSolve
Asteroid CollisionSolve
Average Selling PriceSolve
Average Time of Process per MachineSolve
Avoid Flood in The CitySolve
Balanced Binary TreeSolve
Basic CalculatorSolve
Best Time to Buy and Sell Stock with CooldownSolve
Big CountriesSolve
Binary Number with Alternating BitsSolve
Binary Subarrays With SumSolve
Binary Tree Inorder TraversalSolve
Binary Tree Maximum Path SumSolve
Burst BalloonsSolve
Can Place FlowersSolve
Capacity To Ship Packages Within D DaysSolve
Car PoolingSolve
Check If Digits Are Equal in String After Operations ISolve
Check if the Sentence Is PangramSolve
Classes With at Least 5 StudentsSolve
Clear DigitsSolve
Coin ChangeSolve
Combination SumSolve
Combination Sum IVSolve
Compare Version NumbersSolve
Consecutive NumbersSolve
Construct Binary Tree from Preorder and Inorder TraversalSolve
Contains Duplicate IISolve
Contiguous ArraySolve
Continuous Subarray SumSolve
Convert Integer to the Sum of Two No-Zero IntegersSolve
Convert Sorted Array to Binary Search TreeSolve
Count Distinct Integers After Removing ZerosSolve
Count of Matches in TournamentSolve
Count the Number of Substrings With Dominant OnesSolve
Count Unguarded Cells in the GridSolve
CounterSolve
Counting BitsSolve
Critical Connections in a NetworkSolve
Daily TemperaturesSolve
Defanging an IP AddressSolve
Degree of an ArraySolve
Delete Leaves With a Given ValueSolve
Delete Node in a Linked ListSolve
Delete Nodes And Return ForestSolve
Delete Nodes From Linked List Present in ArraySolve
Department Highest SalarySolve
Design a Food Rating SystemSolve
Design a Text EditorSolve
Design Circular QueueSolve
Design Linked ListSolve
Design Search Autocomplete SystemSolve
Design SpreadsheetSolve
Design Task ManagerSolve
Design TwitterSolve
Detect CapitalSolve
Diagonal TraverseSolve
Distinct SubsequencesSolve
Divide Two IntegersSolve
Divisor GameSolve
Duplicate EmailsSolve
Employee ImportanceSolve
Encode and Decode StringsSolve
Evaluate DivisionSolve
Exchange SeatsSolve
Exclusive Time of FunctionsSolve
Expression Add OperatorsSolve
Fibonacci NumberSolve
Final Value of Variable After Performing OperationsSolve
Find a Peak Element IISolve
Find All Duplicates in an ArraySolve
Find And Replace in StringSolve
Find Beautiful Indices in the Given Array ISolve
Find Closest PersonSolve
Find Median from Data StreamSolve
Find Minimum in Rotated Sorted Array IISolve
Find Pivot IndexSolve
Find Resultant Array After Removing AnagramsSolve
Find the Duplicate NumberSolve
Find the Highest AltitudeSolve
Find the Maximum Achievable NumberSolve
Find the Number of Ways to Place People ISolve
Find the Smallest Divisor Given a ThresholdSolve
Find X-Sum of All K-Long Subarrays IISolve
First Unique Character in a StringSolve
Fizz BuzzSolve
Flatten Nested List IteratorSolve
Fraction to Recurring DecimalSolve
Game Play Analysis IVSolve
Gray CodeSolve
Greatest Common Divisor of StringsSolve
Group Shifted StringsSolve
Guess the WordSolve
House Robber IISolve
Immediate Food Delivery IISolve
Increasing Triplet SubsequenceSolve
Integer BreakSolve
Integer to English WordsSolve
Integer to RomanSolve
Intersection of Two Arrays IISolve
Intersection of Two Linked ListsSolve
Invalid TweetsSolve
Inverse Coin ChangeSolve
Is SubsequenceSolve
Isomorphic StringsSolve
Jewels and StonesSolve
K Closest Points to OriginSolve
Keep Multiplying Found Values by TwoSolve
Kth Missing Positive NumberSolve
Kth Smallest Element in a BSTSolve
Largest Divisible SubsetSolve
Largest NumberSolve
Largest Perimeter TriangleSolve
Last Stone WeightSolve
Leaf-Similar TreesSolve
Left and Right Sum DifferencesSolve
Length of Last WordSolve
Letter Combinations of a Phone NumberSolve
Lexicographically Smallest Permutation Greater Than TargetSolve
Linked List CycleSolve
Linked List Cycle IISolve
Logger Rate LimiterSolve
Longest Continuous Increasing SubsequenceSolve
Longest Increasing Path in a MatrixSolve
Longest Non-Decreasing Subarray After Replacing at Most One ElementSolve
Longest String ChainSolve
Lowest Common Ancestor of a Binary Search TreeSolve
Lowest Common Ancestor of a Binary TreeSolve
Lowest Common Ancestor of a Binary Tree IIISolve
Magnetic Force Between Two BallsSolve
Make Array Elements Equal to ZeroSolve
Managers with at Least 5 Direct ReportsSolve
Max Points on a LineSolve
Maximize the Minimum Powered CitySolve
Maximum Area of a Piece of Cake After Horizontal and Vertical CutsSolve
Maximum Average Pass RatioSolve
Maximum Average Subarray ISolve
Maximum Depth of Binary TreeSolve
Maximum Distance in ArraysSolve
Maximum Frequency of an Element After Performing Operations ISolve
Maximum Frequency of an Element After Performing Operations IISolve
Maximum GapSolve
Maximum Number of Distinct Elements After OperationsSolve
Maximum Number of Operations to Move Ones to the EndSolve
Maximum Product SubarraySolve
Maximum Profit in Job SchedulingSolve
Maximum Score of a Node SequenceSolve
Maximum Students Taking ExamSolve
Maximum Subarray With Equal ProductsSolve
Maximum Total Damage With Spell CastingSolve
Maximum Units on a TruckSolve
Maximum Width RampSolve
Maximum XOR of Two Numbers in an ArraySolve
Meeting RoomsSolve
Meeting Rooms IIISolve
Merge Two Binary TreesSolve
Min Cost to Connect All PointsSolve
Min StackSolve
Minimum Area Rectangle IISolve
Minimum Cost to Make at Least One Valid Path in a GridSolve
Minimum Interval to Include Each QuerySolve
Minimum Moves to Move a Box to Their Target LocationSolve
Minimum Number of Operations to Make All Array Elements Equal to 1Solve
Minimum Number of Operations to Move All Balls to Each BoxSolve
Minimum Number of People to TeachSolve
Minimum Number of Refueling StopsSolve
Minimum Operations to Convert All Elements to ZeroSolve
Minimum Operations to Make Array Elements ZeroSolve
Minimum Operations to Make the Integer ZeroSolve
Minimum Pair Removal to Sort Array ISolve
Monthly Transactions ISolve
Multiply StringsSolve
My Calendar ISolve
N-Queens IISolve
Nested List Weight SumSolve
Next Greater Element ISolve
Nim GameSolve
Nth DigitSolve
Number of Closed IslandsSolve
Number of Matching SubsequencesSolve
Number of People Aware of a SecretSolve
Number of ProvincesSolve
Number of Steps to Reduce a Number to ZeroSolve
Odd Even Linked ListSolve
Ones and ZeroesSolve
Pacific Atlantic Water FlowSolve
Paint HouseSolve
Palindrome Partitioning IISolve
Palindromic SubstringsSolve
Partition Array Into K-Distinct GroupsSolve
Path SumSolve
Path Sum IISolve
Path With Maximum Minimum ValueSolve
Peak Index in a Mountain ArraySolve
Percentage of Users Attended a ContestSolve
Perfect SquaresSolve
Permutation SequenceSolve
Populating Next Right Pointers in Each NodeSolve
Power Grid MaintenanceSolve
Predict the WinnerSolve
Product Sales Analysis IIISolve
Queue Reconstruction by HeightSolve
Race CarSolve
Range ModuleSolve
Range Sum Query 2D - ImmutableSolve
Rank ScoresSolve
Ransom NoteSolve
Rearrange Array Elements by SignSolve
Recover Binary Search TreeSolve
Remove BoxesSolve
Remove Duplicates from Sorted Array IISolve
Remove Duplicates from Sorted ListSolve
Remove Invalid ParenthesesSolve
Remove K DigitsSolve
Remove Linked List ElementsSolve
Remove Nth Node From End of ListSolve
Reorder ListSolve
Reorganize StringSolve
Replace Non-Coprime Numbers in ArraySolve
Reverse Linked List IISolve
Reverse PairsSolve
Reverse Prefix of WordSolve
Reverse String IISolve
Reverse Words in a StringSolve
Rising TemperatureSolve
Rotate StringSolve
Same TreeSolve
Search a 2D MatrixSolve
Search Suggestions SystemSolve
Separate Squares ISolve
Sequence ReconstructionSolve
Serialize and Deserialize N-ary TreeSolve
Set Matrix ZeroesSolve
Set MismatchSolve
Shortest PalindromeSolve
Shortest Path in Binary MatrixSolve
Shortest Path Visiting All NodesSolve
Shortest Subarray to be Removed to Make Array SortedSolve
Simple Bank SystemSolve
Single Number IISolve
SleepSolve
Sliding Window MaximumSolve
Smallest Number With All Set BitsSolve
Snapshot ArraySolve
Sort an ArraySolve
Sort Integers by The Power ValueSolve
Sort ListSolve
Sort Matrix by DiagonalsSolve
String to Integer (atoi)Solve
Students and ExaminationsSolve
Subarray Product Less Than KSolve
Subsequence Sum After Capping ElementsSolve
SubsetsSolve
Subsets IISolve
Sum of Perfect Square AncestorsSolve
Sum of Square NumbersSolve
Sum of Two IntegersSolve
Sum Root to Leaf NumbersSolve
Summary RangesSolve
Surrounded RegionsSolve
Swap Adjacent in LR StringSolve
Swim in Rising WaterSolve
Symmetric TreeSolve
Taking Maximum Energy From the Mystic DungeonSolve
The Earliest Moment When Everyone Become FriendsSolve
The Number of Employees Which Report to Each EmployeeSolve
Third Maximum NumberSolve
Three DivisorsSolve
Time Needed to Inform All EmployeesSolve
Top K Frequent WordsSolve
Transpose MatrixSolve
Trapping Rain Water IISolve
TriangleSolve
Triangle JudgementSolve
Two Sum II - Input Array Is SortedSolve
Unique Binary Search Trees IISolve
Unique Email AddressesSolve
Valid Palindrome IISolve
Valid Parenthesis StringSolve
Valid Phone NumbersSolve
Vowel SpellcheckerSolve
Wiggle Sort IISolve
Word BreakSolve
Word LadderSolve
Word Ladder IISolve
Word PatternSolve
Word Search IISolve
XOR Operation in an ArraySolve
Zigzag ConversionSolve