Meta Coding Interview Questions: 127 Tagged Problems
127 coding problems tagged Meta — 25 easy · 73 medium · 29 hard — with solutions in 13 languages. Plus a 4-week study plan by topic.
- Problems: 127
- By difficulty: 25 easy · 73 medium · 29 hard
- Languages: JavaScript, TypeScript, Python, Java, C++, C, C#, Go, Kotlin, Swift, Rust, PHP and Ruby
- Cost: Free on every plan; sign in to run and submit
127 problems the CodeKairo catalogue tags as commonly asked in Meta's coding rounds — 25 easy, 73 medium and 29 hard — each judged by hidden tests in 13 languages. The most common topics among them are Arrays (78), Strings (38) and Dynamic Programming (32). CodeKairo's Meta — Coding Screen mock covers the Meta coding screen pattern, which has the tightest clock in this catalogue: four problems in seventy minutes. The tag is the catalogue's own annotation of where a problem tends to come up — not a list published by Meta, which CodeKairo is not affiliated with.
Meta study plan by topic
40 of the 127 problems tagged Meta over 4 weeks, about 22 h 35 min of solving, grouped by technique in the order they build on each other — Arrays, Hash Table, Counting and Math and 24 more. It ends with the Meta — Coding Screen mock.
Week 1: Arrays, Hash Table, Counting +4
12 problems on Arrays, Hash Table, Counting, Math, Two Pointers, Sliding Window and Prefix Sum, easiest first within each topic.
- Monotonic Array Easy
- Jewels and Stones Easy
- Count Unique Characters of All Substrings of a Given String Hard
- Excel Sheet Column Number Easy
- Intersection of Two Arrays Easy
- Intersection of Two Arrays II Easy
- Sort Array By Parity Easy
- Next Permutation Medium
- Substring with Concatenation of All Words Hard
- Find Pivot Index Easy
- Contiguous Array Medium
- Continuous Subarray Sum Medium
Week 2: Sorting, Counting Sort, Binary Search +6
11 problems on Sorting, Counting Sort, Binary Search, Stack, Queue, Monotonic Stack, Monotonic Queue, Matrix and Simulation, easiest first within each topic.
- Custom Sort String Medium
- H-Index Medium
- Valid Triangle Number Medium
- Number of Matching Subsequences Medium
- Valid Parenthesis String Medium
- Longest Valid Parentheses Hard
- Maximum Sum Circular Subarray Medium
- Buildings With an Ocean View Medium
- Max Value of Equation Hard
- Maximal Square Medium
- Game of Life Medium
Week 3: Greedy, Heap, Bit Manipulation +5
11 problems on Greedy, Heap, Bit Manipulation, Bitmask, Combinatorics, Backtracking, Breadth-First Search and Depth-First Search, easiest first within each topic.
- Distribute Candies Easy
- Increasing Triplet Subsequence Medium
- Kth Smallest Element in a Sorted Matrix Medium
- Counting Bits Easy
- Hamming Distance Easy
- Add Binary Easy
- Maximum AND Sum of Array Hard
- Number of Ways to Reorder Array to Get Same BST Hard
- Word Search Medium
- Word Ladder Hard
- Pacific Atlantic Water Flow Medium
Week 4: Union Find, Dynamic Programming, Geometry +1
6 problems on Union Find, Dynamic Programming, Geometry and Binary Indexed Tree, easiest first within each topic.
- Number of Connected Components in an Undirected Graph Medium
- Swim in Rising Water Hard
- Arithmetic Slices Medium
- Best Time to Buy and Sell Stock III Hard
- Check If It Is a Straight Line Easy
- Number of Longest Increasing Subsequence Medium
Finally: the timed test
Sit the Meta — Coding Screen mock under the clock — the coding problems are only one part of the round.
Meta test patterns
- Meta — Coding Screen pattern guide and timed mock
All problems tagged Meta
Easy (25)
- Shortest Word Distance Array, String, Two Pointers
- Valid Word Abbreviation String, Two Pointers
- Check If It Is a Straight Line Array, Math, Geometry
- Verifying an Alien Dictionary Array, String, Hash Table
- Check If All 1's Are at Least Length K Places Away Array
- Monotonic Array Array
- Hamming Distance Bit Manipulation
- Counting Bits Dynamic Programming, Bit Manipulation
- Maximum Product of Three Numbers Array, Math, Sorting
- Sort Array By Parity II Array, Two Pointers, Sorting
- Toeplitz Matrix Array, Matrix
- Shortest Distance to a Character Array, Two Pointers, String
- Jewels and Stones Hash Table, String
- Reverse Words in a String III Two Pointers, String
- Sort Array By Parity Array, Two Pointers, Sorting
- Distribute Candies Array, Hash Table, Greedy
- Find Pivot Index Array, Prefix Sum
- Intersection of Two Arrays II Array, Hash Table, Two Pointers
- Intersection of Two Arrays Array, Hash Table, Two Pointers
- Add Strings Math, String, Simulation
- Plus One Array, Math
- Add Binary Math, String, Bit Manipulation
- Roman to Integer Hash Table, Math, String
- Excel Sheet Column Title Math, String
- Excel Sheet Column Number Math, String
Medium (73)
- Minimum Number of Increments on Subarrays to Form a Target Array Array, Greedy, Dynamic Programming
- The Maze II Array, Matrix, Graph
- Number of Corner Rectangles Array, Matrix, Math
- Peak Index in a Mountain Array Array, Binary Search
- Find First and Last Position of Element in Sorted Array Array, Binary Search
- Max Consecutive Ones II Array, Sliding Window, Dynamic Programming
- Sentence Similarity III String, Two Pointers, Array
- Number of Wonderful Substrings Bit Manipulation, Hash Table, String
- Bitwise ORs of Subarrays Bit Manipulation, Array, Dynamic Programming
- Find the Longest Substring Containing Vowels in Even Counts Bit Manipulation, Hash Table, String
- UTF-8 Validation Bit Manipulation, Array
- Flip String to Monotone Increasing String, Dynamic Programming, Bit Manipulation
- Maximum XOR After Operations Bit Manipulation, Array, Brainteaser
- Integer Replacement Bit Manipulation, Greedy, Dynamic Programming
- Minimum Area Rectangle Hash Table, Array, Geometry
- Number of Boomerangs Hash Table, Math, Array
- Brick Wall Hash Table, Array, Counting
- Maximum Size Subarray Sum Equals k Array, Hash Table, Prefix Sum
- Short Encoding of Words String, Trie, Hash Table
- Longest Substring With At Least K Repeating Characters String, Sliding Window, Divide and Conquer
- Number of Matching Subsequences String, Two Pointers, Binary Search
- Paint House Array, Dynamic Programming
- Non-decreasing Array Array, Greedy
- Word Search Array, String, Backtracking
- Pacific Atlantic Water Flow Array, Depth-First Search, Breadth-First Search
- Jump Game III Array, Depth-First Search, Breadth-First Search
- Possible Bipartition Depth-First Search, Breadth-First Search, Union Find
- Minimum Height Trees Depth-First Search, Breadth-First Search, Graph
- Number of Distinct Islands Array, Hash Table, Depth-First Search
- Shortest Bridge Array, Depth-First Search, Breadth-First Search
- The Earliest Moment When Everyone Become Friends Array, Union Find, Sorting
- Shortest Path in Binary Matrix Array, Breadth-First Search, Matrix
- All Paths From Source to Target Backtracking, Depth-First Search, Breadth-First Search
- Is Graph Bipartite? Depth-First Search, Breadth-First Search, Union Find
- Graph Valid Tree Depth-First Search, Breadth-First Search, Union Find
- Number of Connected Components in an Undirected Graph Depth-First Search, Breadth-First Search, Union Find
- Divide Two Integers Math, Bit Manipulation
- Maximum Product of Word Lengths Array, String, Bit Manipulation
- Total Hamming Distance Array, Math, Bit Manipulation
- Single Number III Array, Bit Manipulation
- Buildings With an Ocean View Array, Stack, Monotonic Stack
- Basic Calculator II Math, String, Stack
- Score of Parentheses String, Stack
- Minimum Remove to Make Valid Parentheses String, Stack
- Minimum Add to Make Parentheses Valid String, Stack, Greedy
- Find K Closest Elements Array, Two Pointers, Binary Search
- Kth Smallest Element in a Sorted Matrix Array, Binary Search, Sorting
- K Closest Points to Origin Array, Math, Divide and Conquer
- Maximum Swap Math, Greedy
- Valid Triangle Number Array, Two Pointers, Binary Search
- Largest Number Array, String, Greedy
- Maximum Sum Circular Subarray Array, Divide and Conquer, Dynamic Programming
- Combination Sum IV Array, Dynamic Programming
- Perfect Squares Math, Dynamic Programming, Breadth-First Search
- Interleaving String String, Dynamic Programming
- Arithmetic Slices Array, Dynamic Programming
- Number of Longest Increasing Subsequence Array, Dynamic Programming, Binary Indexed Tree
- Maximum Length of Repeated Subarray Array, Binary Search, Dynamic Programming
- Valid Sudoku Array, Hash Table, Matrix
- Game of Life Array, Matrix, Simulation
- Maximal Square Array, Dynamic Programming, Matrix
- Diagonal Traverse Array, Matrix, Simulation
- Remove Duplicates from Sorted Array II Array, Two Pointers
- Continuous Subarray Sum Array, Hash Table, Math
- Contiguous Array Array, Hash Table, Prefix Sum
- Subarray Product Less Than K Array, Sliding Window, Binary Search
- Custom Sort String Hash Table, String, Sorting
- Valid Parenthesis String String, Dynamic Programming, Stack
- Count and Say String, Simulation
- Reverse Words in a String Two Pointers, String
- Increasing Triplet Subsequence Array, Greedy
- H-Index Array, Sorting, Counting Sort
- Next Permutation Array, Two Pointers
Hard (29)
- Count the Number of Ideal Arrays Math, Dynamic Programming, Combinatorics
- Number of Ways to Rearrange Sticks With K Sticks Visible Math, Dynamic Programming, Combinatorics
- The Number of Good Subsets Array, Math, Dynamic Programming
- Number of Ways to Reorder Array to Get Same BST Array, Math, Divide and Conquer
- Make Array Strictly Increasing Array, Binary Search, Dynamic Programming
- Odd Even Jump Array, Dynamic Programming, Stack
- Minimum Replacements to Sort the Array Array, Math, Greedy
- Reverse Pairs Array, Binary Search, Divide and Conquer
- Number of Ways to Separate Numbers String, Dynamic Programming, Suffix Array
- Stone Game VIII Array, Math, Dynamic Programming
- Constrained Subsequence Sum Array, Dynamic Programming, Queue
- Strange Printer String, Dynamic Programming
- Special Binary String String, Recursion, Divide and Conquer
- Shortest Distance from All Buildings Array, Matrix, Breadth-First Search
- Number of Submatrices That Sum to Target Array, Matrix, Hash Table
- Shortest Path Visiting All Nodes Bit Manipulation, Breadth-First Search, Graph
- Maximum AND Sum of Array Bit Manipulation, Dynamic Programming, Bitmask
- Find Subarray With Bitwise OR Closest to K Bit Manipulation, Array, Binary Search
- Preimage Size of Factorial Zeroes Function Math, Binary Search, Number Theory
- Largest Multiple of Three Array, Greedy, Dynamic Programming
- Count of Range Sum Fenwick Tree, Divide and Conquer, Prefix Sum
- Substring with Concatenation of All Words Hash Table, String, Sliding Window
- Count Unique Characters of All Substrings of a Given String String, Hash Table, Counting
- Max Value of Equation Array, Monotonic Queue, Sliding Window
- Wildcard Matching String, Dynamic Programming, Greedy
- Swim in Rising Water Array, Binary Search, Depth-First Search
- Word Ladder Hash Table, String, Breadth-First Search
- Longest Valid Parentheses String, Dynamic Programming, Stack
- Best Time to Buy and Sell Stock III Array, Dynamic Programming
Topics Meta asks most
- Arrays 78 problems
- Strings 38 problems
- Dynamic Programming 32 problems
- Math 25 problems
- Hash Table 22 problems
- Bit Manipulation 18 problems
- Breadth-First Search 17 problems
- Matrix 16 problems
- Two Pointers 15 problems
- Sorting 14 problems
- Greedy 14 problems
- Binary Search 13 problems