Tiktok String Coding Interview Questions
61 string coding problems are tagged as asked at Tiktok in interviews and online assessments reported by candidates. By difficulty they split into 11 basic, 34 intermediate and 16 advanced. The topics they most often combine with are Math, Stack, Hash Table, Sorting.
Reported questions change over time and are not a guarantee of what you will be asked, so use the list to see which patterns Tiktok 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)
- Valid Palindrome (Basic)
- Decode Ways (Intermediate)
- Longest Palindromic Substring (Intermediate)
- Reverse Words in a String (Basic)
- Roman to Integer (Intermediate)
- Longest Common Subsequence (Advanced)
- Edit Distance (Advanced)
- Longest Valid Parentheses (Advanced)
- Score of Parentheses (Intermediate)
- Greatest Common Divisor of Strings (Intermediate)
- Remove Invalid Parentheses (Intermediate)
- Valid Parenthesis With Wildcards (Advanced)
- Permutation Inside a String (Intermediate)
- Remove K Digits to Get the Smallest Number (Intermediate)
- Compare Version Numbers (Intermediate)
- Longest Substring With At Most K Letters (Intermediate)
- Minimum Window Substring (Advanced)
- Add Strings (Basic)
- Text Justification (Intermediate)
- Zigzag Level Order Traversal (Intermediate)
- Open the Lock (Intermediate)
- Regions Cut by Slashes (Intermediate)
- Alien Dictionary Order (Advanced)
- Regular Expression Matching (Advanced)
- Two Keys Keyboard (Intermediate)
- Longest Duplicate Substring (Advanced)
- String Compression (Basic)
- Multiply Strings (Intermediate)
- Replace Words (Intermediate)
- Word Search (Intermediate)
- Word Search II Count (Advanced)
- Count Binary Substrings (Basic)
- Validate IP Address (Intermediate)
- Basic Calculator (Advanced)
- Basic Calculator II (Intermediate)
- Simplify Path (Intermediate)
- Remove Duplicate Letters (Advanced)
- Task Scheduler (Intermediate)
- Reorganize String (Intermediate)
- Valid Sudoku (Intermediate)
- Valid Palindrome With One Deletion (Basic)
- Longest Substring With At Least K Repeats (Intermediate)
- Time Based Key-Value Store (Intermediate)
- Nth Digit (Intermediate)
- Restore IP Addresses (Intermediate)
- Word Break II (Advanced)
- Expression Add Operators (Advanced)
- Letter Case Permutation (Basic)
- Implement Trie Operations (Intermediate)
- Add and Search Words (Intermediate)
- Count Pairs of Similar Strings (Basic)
- Construct String From Binary Tree (Basic)
- Stickers to Spell Word (Advanced)
- Flip Game II (Intermediate)
- Valid Word Abbreviation (Basic)
- Number of Atoms (Advanced)
- Basic Calculator III (Advanced)
- Minimum Operations to Move All Balls to Each Box (Intermediate)
- Remove All Adjacent Duplicates in String II (Intermediate)
Related
- Tiktok coding interview questions
- String problems
- Tiktok basic problems
- Tiktok intermediate problems
- Tiktok advanced problems
- Company interview roadmaps
- All interview guides
Frequently asked questions
How should I use the Tiktok 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 Tiktok 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.