← Meta roles

Interview question tracker

Meta Coding Interview Questions — Last 6 months

Practice 542 coding questions from Meta company-tagged LeetCode lists in the source’s last 6 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 542

DoneQuestionLeetCode
Minimum Remove to Make Valid ParenthesesSolve
Valid Palindrome IISolve
Valid Word AbbreviationSolve
Basic Calculator IISolve
Binary Tree Right Side ViewSolve
Binary Tree Vertical Order TraversalSolve
Diameter of Binary TreeSolve
Kth Largest Element in an ArraySolve
Lowest Common Ancestor of a Binary TreeSolve
Lowest Common Ancestor of a Binary Tree IIISolve
Merge IntervalsSolve
Nested List Weight SumSolve
Pow(x, n)Solve
Random Pick with WeightSolve
Subarray Sum Equals KSolve
Top K Frequent ElementsSolve
Two SumSolve
Best Time to Buy and Sell StockSolve
Buildings With an Ocean ViewSolve
Clone GraphSolve
Copy List with Random PointerSolve
Course ScheduleSolve
Custom Sort StringSolve
Dot Product of Two Sparse VectorsSolve
Find First and Last Position of Element in Sorted ArraySolve
Find Peak ElementSolve
K Closest Points to OriginSolve
LRU CacheSolve
Making A Large IslandSolve
Max Consecutive Ones IIISolve
Merge Sorted ArraySolve
Minimum Window SubstringSolve
Next PermutationSolve
Range Sum of BSTSolve
Shortest Path in Binary MatrixSolve
Simplify PathSolve
Sum Root to Leaf NumbersSolve
Valid PalindromeSolve
Valid ParenthesesSolve
3SumSolve
Add StringsSolve
Add Two NumbersSolve
All Nodes Distance K in Binary TreeSolve
Closest Binary Search Tree ValueSolve
Count Nodes Equal to Average of SubtreeSolve
Diagonal TraverseSolve
Exclusive Time of FunctionsSolve
Insert into a Sorted Circular Linked ListSolve
Interval List IntersectionsSolve
Kth Missing Positive NumberSolve
Longest Common PrefixSolve
Longest Palindromic SubstringSolve
Longest Substring Without Repeating CharactersSolve
Longest Valid ParenthesesSolve
Maximum SwapSolve
Merge k Sorted ListsSolve
Minimum Add to Make Parentheses ValidSolve
Moving Average from Data StreamSolve
Palindromic SubstringsSolve
Remove Duplicates from Sorted ArraySolve
Remove Nth Node From End of ListSolve
Robot Room CleanerSolve
Simple Bank SystemSolve
Sliding Window MedianSolve
Valid NumberSolve
Vertical Order Traversal of a Binary TreeSolve
4SumSolve
Accounts MergeSolve
Alien DictionarySolve
Binary Search Tree IteratorSolve
Binary Tree Level Order TraversalSolve
Boundary of Binary TreeSolve
Climbing StairsSolve
Container With Most WaterSolve
Contains Duplicate IISolve
Continuous Subarray SumSolve
Convert Binary Search Tree to Sorted Doubly Linked ListSolve
Decode StringSolve
Design Tic-Tac-ToeSolve
Find Median from Data StreamSolve
Friends Of Appropriate AgesSolve
Generate ParenthesesSolve
Goat LatinSolve
Group AnagramsSolve
Group Shifted StringsSolve
Koko Eating BananasSolve
Kth Smallest Element in a Sorted MatrixSolve
Majority ElementSolve
Max Area of IslandSolve
Maximum SubarraySolve
Median of Two Sorted ArraysSolve
Merge Two Sorted ListsSolve
Missing Element in Sorted ArraySolve
Missing RangesSolve
Move ZeroesSolve
Number of IslandsSolve
Palindrome NumberSolve
Peak Index in a Mountain ArraySolve
Populating Next Right Pointers in Each NodeSolve
Random Pick IndexSolve
Remove All Adjacent Duplicates in String IISolve
Roman to IntegerSolve
Rotate ImageSolve
Search in Rotated Sorted ArraySolve
Set Matrix ZeroesSolve
Sliding Window MaximumSolve
Sort ColorsSolve
Squares of a Sorted ArraySolve
String to Integer (atoi)Solve
Strobogrammatic NumberSolve
SubsetsSolve
Swim in Rising WaterSolve
Trapping Rain WaterSolve
Unique PathsSolve
Valid Palindrome IIISolve
Word LadderSolve
3Sum ClosestSolve
Add BinarySolve
Add Two IntegersSolve
Article Views ISolve
Battleships in a BoardSolve
Best Time to Buy and Sell Stock IISolve
Best Time to Buy and Sell Stock IIISolve
Binary SearchSolve
Binary Tree Inorder TraversalSolve
Binary Tree Maximum Path SumSolve
Can Place FlowersSolve
Capacity To Ship Packages Within D DaysSolve
Car PoolingSolve
Check Completeness of a Binary TreeSolve
Coin ChangeSolve
CombinationsSolve
Construct Binary Tree from StringSolve
Contains DuplicateSolve
Course Schedule IISolve
Decode WaysSolve
Diagonal Traverse IISolve
Expression Add OperatorsSolve
Find K Closest ElementsSolve
Find Pivot IndexSolve
Find the Index of the First Occurrence in a StringSolve
Fruits Into Baskets IISolve
Gas StationSolve
House Robber IISolve
Insert Delete GetRandom O(1)Solve
Jump GameSolve
Kids With the Greatest Number of CandiesSolve
Largest Rectangle in HistogramSolve
Letter Combinations of a Phone NumberSolve
Longest Common SubsequenceSolve
Longest Consecutive SequenceSolve
Longest Increasing Path in a MatrixSolve
Longest Increasing SubsequenceSolve
Longest Repeating Character ReplacementSolve
Maximal RectangleSolve
Meeting Rooms IISolve
Middle of the Linked ListSolve
Multiply StringsSolve
Next Greater Element ISolve
Next Greater Element IISolve
Next Greater Element IIISolve
Odd Even Linked ListSolve
Palindrome Linked ListSolve
Palindrome PartitioningSolve
Pascal's TriangleSolve
Plus OneSolve
Power of TwoSolve
Product of Two Run-Length Encoded ArraysSolve
Range Sum Query - ImmutableSolve
Regular Expression MatchingSolve
Remove All Adjacent Duplicates In StringSolve
Remove ElementSolve
Remove Invalid ParenthesesSolve
Reverse BitsSolve
Reverse IntegerSolve
Reverse Linked ListSolve
Rising TemperatureSolve
Rotate ArraySolve
Rotting OrangesSolve
Same TreeSolve
Search Insert PositionSolve
Shortest BridgeSolve
Shortest Distance from All BuildingsSolve
Single Element in a Sorted ArraySolve
Single NumberSolve
Sparse Matrix MultiplicationSolve
Spiral MatrixSolve
Sqrt(x)Solve
String CompressionSolve
Strobogrammatic Number IISolve
Toeplitz MatrixSolve
Valid AnagramSolve
Walls and GatesSolve
Zigzag ConversionSolve
24 GameSolve
Asteroid CollisionSolve
Average Selling PriceSolve
Balanced Binary TreeSolve
Basic CalculatorSolve
Best Time to Buy and Sell Stock using StrategySolve
Big CountriesSolve
Binary Tree Level Order Traversal IISolve
Binary Tree Zigzag Level Order TraversalSolve
Bulb SwitcherSolve
CandySolve
Check if a Parentheses String Can Be ValidSolve
Check if Array Is Sorted and RotatedSolve
Check If Two String Arrays are EquivalentSolve
Coin Change IISolve
Collect Coins in a TreeSolve
Combination SumSolve
Combination Sum IISolve
Combine Two TablesSolve
Construct Binary Tree from Preorder and Inorder TraversalSolve
Contiguous ArraySolve
Count Elements With Maximum FrequencySolve
Count Good NumbersSolve
Count Number of Nice SubarraysSolve
Count PrimesSolve
Count Unguarded Cells in the GridSolve
Counting BitsSolve
Customers Who Bought All ProductsSolve
Cutting RibbonsSolve
Delete Node in a Linked ListSolve
Design Circular QueueSolve
Design HashMapSolve
Design SkiplistSolve
Distribute Candies Among Children IISolve
Divide Two IntegersSolve
Element Appearing More Than 25% In Sorted ArraySolve
Employees Earning More Than Their ManagersSolve
Exchange SeatsSolve
Find All K-Distant Indices in an ArraySolve
Find Duplicate File in SystemSolve
Find Lucky Integer in an ArraySolve
Find Minimum in Rotated Sorted ArraySolve
Find Most Frequent Vowel and ConsonantSolve
Find Subsequence of Length K With the Largest SumSolve
Find the Duplicate NumberSolve
Find the K-th Character in String Game ISolve
Find the Minimum Amount of Time to Brew PotionsSolve
Find the PeaksSolve
First Bad VersionSolve
First Missing PositiveSolve
Flatten Nested List IteratorSolve
Fraction to Recurring DecimalSolve
Frequency of the Most Frequent ElementSolve
Friend Requests II: Who Has the Most FriendsSolve
Fruit Into BasketsSolve
Game Play Analysis IVSolve
Implement Stack using QueuesSolve
Implement Trie (Prefix Tree)Solve
Increasing Triplet SubsequenceSolve
Integer to RomanSolve
Interleaving StringSolve
Intersection of Two ArraysSolve
Intersection of Two Arrays IISolve
Intersection of Two Linked ListsSolve
Investments in 2016Solve
Is SubsequenceSolve
Isomorphic StringsSolve
Largest Color Value in a Directed GraphSolve
Largest NumberSolve
Letter Case PermutationSolve
Linked List CycleSolve
Longest String ChainSolve
Lowest Common Ancestor of a Binary Search TreeSolve
Lowest Common Ancestor of a Binary Tree IISolve
Lowest Common Ancestor of Deepest LeavesSolve
Managers with at Least 5 Direct ReportsSolve
Max Consecutive OnesSolve
Max Number of K-Sum PairsSolve
Maximum Difference by Remapping a DigitSolve
Maximum Level Sum of a Binary TreeSolve
Maximum Number of Events That Can Be AttendedSolve
Maximum Number of Occurrences of a SubstringSolve
Maximum Number of Operations to Move Ones to the EndSolve
Maximum Points You Can Obtain from CardsSolve
Maximum Product SubarraySolve
Maximum Sum of 3 Non-Overlapping SubarraysSolve
Maximum Width of Binary TreeSolve
Merge Two Binary TreesSolve
Min Cost Climbing StairsSolve
Min StackSolve
MinesweeperSolve
Minimize the Maximum Difference of PairsSolve
Minimum Absolute Difference Between Elements With ConstraintSolve
Minimum Cost For TicketsSolve
Minimum Depth of Binary TreeSolve
Minimum Operations to Make the Integer ZeroSolve
Minimum Path SumSolve
Minimum Size Subarray SumSolve
Minimum Time to Collect All Apples in a TreeSolve
Missing NumberSolve
Monotonic ArraySolve
Monthly Transactions ISolve
N-QueensSolve
Non-overlapping IntervalsSolve
Number of Matching SubsequencesSolve
Number of Operations to Make Network ConnectedSolve
Number of Recent CallsSolve
Online Stock SpanSolve
Open the LockSolve
Pacific Atlantic Water FlowSolve
Partition Equal Subset SumSolve
Path Sum IISolve
PermutationsSolve
Power Grid MaintenanceSolve
Product of the Last K NumbersSolve
Rank ScoresSolve
Rank Transform of an ArraySolve
Rearrange Array Elements by SignSolve
Recyclable and Low Fat ProductsSolve
Redundant ConnectionSolve
Remove All Occurrences of a SubstringSolve
Remove K DigitsSolve
Reorder ListSolve
Repeated DNA SequencesSolve
Repeated String MatchSolve
Reverse Linked List IISolve
Reverse Nodes in k-GroupSolve
Reverse PairsSolve
Reverse StringSolve
Reverse Vowels of a StringSolve
Reverse Words in a StringSolve
Richest Customer WealthSolve
Rotate ListSolve
Rotate StringSolve
Running Sum of 1d ArraySolve
Search a 2D MatrixSolve
Search a 2D Matrix IISolve
Second Highest SalarySolve
Serialize and Deserialize Binary TreeSolve
Shortest Path in a Grid with Obstacles EliminationSolve
Smallest Subtree with all the Deepest NodesSolve
Snakes and LaddersSolve
Sort Array By ParitySolve
Sort Characters By FrequencySolve
Sort ListSolve
Split Array Largest SumSolve
Students and ExaminationsSolve
Subarray Product Less Than KSolve
Subsets IISolve
Successful Pairs of Spells and PotionsSolve
Sudoku SolverSolve
Sum of Square NumbersSolve
Sum of Subarray MinimumsSolve
Target SumSolve
Task SchedulerSolve
Tenth LineSolve
Text JustificationSolve
The MazeSolve
The Skyline ProblemSolve
Transpose MatrixSolve
TriangleSolve
Two Sum II - Input Array Is SortedSolve
Unique Binary Search TreesSolve
Unique Binary Search Trees IISolve
Unique Number of OccurrencesSolve
Valid Parenthesis StringSolve
Valid SudokuSolve
Validate Binary Search TreeSolve
Validate IP AddressSolve
Wildcard MatchingSolve
Word BreakSolve
Word Ladder IISolve
Word SearchSolve
01 MatrixSolve
132 PatternSolve
Add Bold Tag in StringSolve
Add Two Numbers IISolve
Arithmetic SlicesSolve
Average of Levels in Binary TreeSolve
Average Time of Process per MachineSolve
Avoid Flood in The CitySolve
Best Sightseeing PairSolve
Binary Subarrays With SumSolve
Cheapest Flights Within K StopsSolve
Check If Digits Are Equal in String After Operations ISolve
Check if the Sentence Is PangramSolve
Cherry PickupSolve
Clone Binary Tree With Random PointerSolve
Compute Decimal RepresentationSolve
Concatenation of ArraySolve
Construct Binary Search Tree from Preorder TraversalSolve
Convert a Number to HexadecimalSolve
Convert Binary Number in a Linked List to IntegerSolve
Count Binary SubstringsSolve
Count Negative Numbers in a Sorted MatrixSolve
Count Number of Trapezoids IISolve
Count Square Submatrices with All OnesSolve
Count Symmetric IntegersSolve
Count the Number of Infection SequencesSolve
Customer Who Visited but Did Not Make Any TransactionsSolve
Customers Who Never OrderSolve
Decode the MessageSolve
Defuse the BombSolve
Delete Duplicate EmailsSolve
Design a Text EditorSolve
Design Memory AllocatorSolve
Destination CitySolve
Distinct SubsequencesSolve
Divisible and Non-divisible Sums DifferenceSolve
Dungeon GameSolve
Evaluate DivisionSolve
Find a Peak Element IISolve
Find All Anagrams in a StringSolve
Find Books with No Available CopiesSolve
Find Closest PersonSolve
Find K Pairs with Smallest SumsSolve
Find Minimum Time to Finish All JobsSolve
Find Missing and Repeated ValuesSolve
Find N Unique Integers Sum up to ZeroSolve
Find Root of N-Ary TreeSolve
Find the CelebritySolve
Find the Length of the Longest Common PrefixSolve
Find the Lexicographically Largest String From the Box ISolve
Find the Maximum Length of Valid Subsequence ISolve
Find the Number of Ways to Place People ISolve
Find the Number of Ways to Place People IISolve
Find the Original Typed String ISolve
Find the Prefix Common Array of Two ArraysSolve
Find the Smallest Divisor Given a ThresholdSolve
Find the XOR of Numbers Which Appear TwiceSolve
Find Winner on a Tic Tac Toe GameSolve
Find Words That Can Be Formed by CharactersSolve
Finding Pairs With a Certain SumSolve
First Unique Character in a StringSolve
Flatten Binary Tree to Linked ListSolve
Furthest Building You Can ReachSolve
Greatest Common Divisor of StringsSolve
Hand of StraightsSolve
Happy NumberSolve
House RobberSolve
Human Traffic of StadiumSolve
Immediate Food Delivery IISolve
Implement Queue using StacksSolve
Increment Submatrices by OneSolve
Insertion Sort ListSolve
Integer BreakSolve
Invert Binary TreeSolve
Island PerimeterSolve
Jewels and StonesSolve
Jump Game IISolve
Keep Multiplying Found Values by TwoSolve
Kth Smallest Element in a BSTSolve
Largest BST SubtreeSolve
Largest Perimeter TriangleSolve
Largest Plus SignSolve
Lemonade ChangeSolve
Length of Last WordSolve
Lexicographically Minimum String After Removing StarsSolve
Linked List Cycle IISolve
Longest Harmonious SubsequenceSolve
Make Array Elements Equal to ZeroSolve
Matchsticks to SquareSolve
Max Points on a LineSolve
Maximum 69 NumberSolve
Maximum Alternating Subsequence SumSolve
Maximum Area of Longest Diagonal RectangleSolve
Maximum Average Pass RatioSolve
Maximum Average Subarray ISolve
Maximum Candies Allocated to K ChildrenSolve
Maximum Frequency of an Element After Performing Operations ISolve
Maximum Manhattan Distance After K ChangesSolve
Maximum Product of Two Elements in an ArraySolve
Maximum Score From Removing SubstringsSolve
Maximum Unique Subarray Sum After DeletionSolve
Maximum XOR of Two Numbers in an ArraySolve
Merge Strings AlternatelySolve
Merge Two 2D Arrays by Summing ValuesSolve
Minimize Maximum Pair Sum in ArraySolve
Minimum Falling Path SumSolve
Minimum Knight MovesSolve
Minimum Number of Days to Make m BouquetsSolve
Minimum Operations to Convert All Elements to ZeroSolve
Minimum Score After Removals on a TreeSolve
Minimum Score Triangulation of PolygonSolve
Minimum Time DifferenceSolve
Most Profit Assigning WorkSolve
Most Stones Removed with Same Row or ColumnSolve
Movie RatingSolve
Network Delay TimeSolve
New 21 GameSolve
Next Greater Numerically Balanced NumberSolve
Nim GameSolve
Non-decreasing ArraySolve
Number of 1 BitsSolve
Number of Pairs Satisfying InequalitySolve
Number of Zero-Filled SubarraysSolve
Ones and ZeroesSolve
Parsing A Boolean ExpressionSolve
Partition Array into Two Equal Product SubsetsSolve
Partition LabelsSolve
Path SumSolve
Path Sum IIISolve
Permutations IISolve
Populating Next Right Pointers in Each Node IISolve
Power of ThreeSolve
Primary Department for Each EmployeeSolve
Product of Array Except SelfSolve
Product Sales Analysis ISolve
Product Sales Analysis IIISolve
Rabbits in ForestSolve
Ransom NoteSolve
Rearranging FruitsSolve
Recover Binary Search TreeSolve
Reformat Department TableSolve
Remove Duplicate LettersSolve
Remove Duplicates from Sorted Array IISolve
Remove Linked List ElementsSolve
Remove Outermost ParenthesesSolve
Replace Employee ID With The Unique IdentifierSolve
Restore IP AddressesSolve
Restore the Array From Adjacent PairsSolve
Reverse String IISolve
Search in Rotated Sorted Array IISolve
Smallest Range Covering Elements from K ListsSolve
Smallest Subarrays With Maximum Bitwise ORSolve
Sort Array by Increasing FrequencySolve
Spiral Matrix IISolve
Subtract the Product and Sum of Digits of an IntegerSolve
Sum of Beauty of All SubstringsSolve
Sum of k-Mirror NumbersSolve
Sum of Root To Leaf Binary NumbersSolve
Surrounded RegionsSolve
Swap Nodes in PairsSolve
Swap Sex of EmployeesSolve
Swapping Nodes in a Linked ListSolve
The Earliest and Latest Rounds Where Players CompeteSolve
Top K Frequent WordsSolve
Total Hamming DistanceSolve
Triangle JudgementSolve
Two Sum IV - Input is a BSTSolve
Unique Paths IISolve
User Activity for the Past 30 Days ISolve
Valid Mountain ArraySolve
Valid Perfect SquareSolve
Valid Triangle NumberSolve
Verifying an Alien DictionarySolve
Vowels Game in a StringSolve
Water BottlesSolve