Meta String Coding Interview Questions
164 string coding problems are tagged as asked at Meta in interviews and online assessments reported by candidates. By difficulty they split into 58 basic, 77 intermediate and 29 advanced. The topics they most often combine with are Math, Hash Table, Stack, Two Pointers.
Reported questions change over time and are not a guarantee of what you will be asked, so use the list to see which patterns Meta 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
- Valid Parentheses (Basic)
- Longest Substring Without Repeats (Intermediate)
- Reverse String (Basic)
- First Unique Character (Basic)
- Valid Palindrome (Basic)
- Decode Ways (Intermediate)
- Longest Palindromic Substring (Intermediate)
- Valid Anagram (Basic)
- Ransom Note (Basic)
- Repeated Substring Pattern (Intermediate)
- Reverse Words in a String (Basic)
- Reverse Vowels of a String (Basic)
- Roman to Integer (Intermediate)
- Add Binary (Basic)
- Length of Last Word (Basic)
- Longest Common Subsequence (Advanced)
- Edit Distance (Advanced)
- Longest Valid Parentheses (Advanced)
- Score of Parentheses (Intermediate)
- Greatest Common Divisor of Strings (Intermediate)
- Partition Labels (Intermediate)
- Sort Characters by Frequency (Intermediate)
- Remove Outer Parentheses (Basic)
- Maximum Number of Balloons (Basic)
- Remove Invalid Parentheses (Intermediate)
- Valid Parenthesis With Wildcards (Advanced)
- Is Subsequence (Basic)
- Permutation Inside a String (Intermediate)
- Zigzag Conversion (Intermediate)
- Remove K Digits to Get the Smallest Number (Intermediate)
- Count Palindromic Substrings (Intermediate)
- Longest Substring With At Most K Letters (Intermediate)
- Longest Palindromic Subsequence (Intermediate)
- Isomorphic Strings (Basic)
- Minimum Window Substring (Advanced)
- Shortest Palindrome (Advanced)
- Rotate String (Basic)
- Length of Last Word (Basic)
- Add Strings (Basic)
- Reconstruct Itinerary (Advanced)
- Text Justification (Intermediate)
- Palindrome Linked List (Basic)
- Zigzag Level Order Traversal (Intermediate)
- Level Order Traversal (Basic)
- Open the Lock (Intermediate)
- Minimum Genetic Mutation (Intermediate)
- Satisfiability of Equality Equations (Intermediate)
- Regions Cut by Slashes (Intermediate)
- Similar String Groups (Advanced)
- Alien Dictionary Order (Advanced)
- Largest Color Value in a Directed Graph (Advanced)
- Interleaving String (Intermediate)
- Regular Expression Matching (Advanced)
- Ones and Zeroes (Intermediate)
- Scramble String (Advanced)
- Longest String Chain (Intermediate)
- Strange Printer (Advanced)
- Two Keys Keyboard (Intermediate)
- Count Ways to Build Good Strings (Intermediate)
- Extra Characters in a String (Intermediate)
- Find First Occurrence (Basic)
- Longest Happy Prefix (Intermediate)
- Repeated String Match (Intermediate)
- Longest Duplicate Substring (Advanced)
- String Compression (Basic)
- Valid Number (Advanced)
- String to Integer (Intermediate)
- Multiply Strings (Intermediate)
- Integer to English Words (Advanced)
- Word Search (Intermediate)
- Word Search II Count (Advanced)
- Custom Sort String (Basic)
- Count Binary Substrings (Basic)
- Goat Latin (Basic)
- Number of Matching Subsequences (Intermediate)
- Sum of Beauty of All Substrings (Intermediate)
- Maximum Occurrences of a Substring (Intermediate)
- Longest Palindrome by Concatenating Two-Letter Words (Intermediate)
- Lexicographically Smallest Equivalent String (Intermediate)
- Push Dominoes (Intermediate)
Related
- Meta coding interview questions
- String problems
- Meta basic problems
- Meta intermediate problems
- Meta advanced problems
- Company interview roadmaps
- All interview guides
Frequently asked questions
How should I use the Meta 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 Meta 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.