Tiktok Coding Interview Questions
198 coding problems are tagged as asked at Tiktok in interviews and online assessments reported by candidates. By difficulty they split into 33 basic, 123 intermediate and 41 advanced. The topics they most often combine with are Array, String, Hash Table, Math.
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
- Two Sum (Basic)
- Best Time to Buy and Sell Stock (Basic)
- Maximum Subarray (Intermediate)
- Valid Parentheses (Basic)
- Longest Substring Without Repeats (Intermediate)
- Move Zeroes (Basic)
- Rotate Array (Intermediate)
- Climbing Stairs (Basic)
- House Robber (Intermediate)
- Coin Change (Intermediate)
- Longest Increasing Subsequence (Advanced)
- Valid Palindrome (Basic)
- Kth Largest Element (Intermediate)
- Two Sum in a Sorted Array (Basic)
- Minimum Size Subarray Sum (Intermediate)
- Longest Consecutive Sequence (Intermediate)
- Subarray Sum Equals K (Intermediate)
- Container With Most Water (Intermediate)
- Trapping Rain Water (Advanced)
- Decode Ways (Intermediate)
- Longest Palindromic Substring (Intermediate)
- Happy Number (Intermediate)
- Sort Colors (Basic)
- Largest Rectangle in Histogram (Advanced)
- Daily Temperatures (Intermediate)
- Valid Mountain Array (Basic)
- Reverse Words in a String (Basic)
- Integer to Roman (Intermediate)
- Roman to Integer (Intermediate)
- Longest Common Subsequence (Advanced)
- Edit Distance (Advanced)
- Coin Change Ways (Advanced)
- Longest Valid Parentheses (Advanced)
- Plus One (Basic)
- Search in a Rotated Sorted Array (Advanced)
- Minimum in a Rotated Sorted Array (Intermediate)
- Score of Parentheses (Intermediate)
- Greatest Common Divisor of Strings (Intermediate)
- Merge Intervals (Intermediate)
- Insert an Interval (Intermediate)
- Candy Distribution (Advanced)
- Kth Missing Positive Number (Basic)
- Sum of Subarray Minimums (Advanced)
- Maximum Width Ramp (Advanced)
- Remove Invalid Parentheses (Intermediate)
- Valid Parenthesis With Wildcards (Advanced)
- Subarrays Divisible by K (Intermediate)
- Permutation Inside a String (Intermediate)
- Fruit Into Two Baskets (Intermediate)
- Maximum Points From Cards (Intermediate)
- Longest Mountain Subarray (Intermediate)
- Maximum Product of Three (Basic)
- Remove K Digits to Get the Smallest Number (Intermediate)
- Arithmetic Slices (Intermediate)
- Compare Version Numbers (Intermediate)
- Find K Closest Elements (Intermediate)
- Count Unique Binary Search Trees (Basic)
- Longest Substring With At Most K Letters (Intermediate)
- Maximum Events Attended (Intermediate)
- Shortest Bridge Between Two Islands (Intermediate)
- Tree Nodes at Distance K (Advanced)
- Tree Diameter (Advanced)
- Maximum Product Subarray (Intermediate)
- Subarray Sum Equals K (Intermediate)
- Coin Change Ways (Intermediate)
- Minimum Path Sum (Intermediate)
- Partition Equal Subset Sum (Intermediate)
- Maximum Circular Subarray (Intermediate)
- Best Time to Buy and Sell Stock II (Intermediate)
- House Robber II (Intermediate)
- Next Permutation (Intermediate)
- Gas Station (Intermediate)
- Container With Most Water (Intermediate)
- Top K Frequent Values (Intermediate)
- Minimum Window Substring (Advanced)
- Add Strings (Basic)
- Shortest Path In Binary Grid (Intermediate)
- Number of Connected Components (Basic)
- Is Bipartite (Intermediate)
- Course Schedule Feasible (Intermediate)
Related
- Tiktok basic problems
- Tiktok intermediate problems
- Tiktok advanced problems
- Tiktok Array problems
- Tiktok String problems
- Tiktok Hash Table problems
- Tiktok Math problems
- Tiktok Sorting problems
- Tiktok Matrix problems
- Tiktok Tree problems
- Tiktok Sliding Window 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.