Tiktok Intermediate Coding Interview Questions
123 intermediate coding problems are tagged as asked at Tiktok in interviews and online assessments reported by candidates. By difficulty they split into 0 basic, 123 intermediate and 0 advanced. The topics they most often combine with are Array, String, Matrix, 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
- Maximum Subarray (Intermediate)
- Longest Substring Without Repeats (Intermediate)
- Rotate Array (Intermediate)
- House Robber (Intermediate)
- Coin Change (Intermediate)
- Kth Largest Element (Intermediate)
- Minimum Size Subarray Sum (Intermediate)
- Longest Consecutive Sequence (Intermediate)
- Subarray Sum Equals K (Intermediate)
- Container With Most Water (Intermediate)
- Decode Ways (Intermediate)
- Longest Palindromic Substring (Intermediate)
- Happy Number (Intermediate)
- Daily Temperatures (Intermediate)
- Integer to Roman (Intermediate)
- Roman to Integer (Intermediate)
- Minimum in a Rotated Sorted Array (Intermediate)
- Score of Parentheses (Intermediate)
- Greatest Common Divisor of Strings (Intermediate)
- Merge Intervals (Intermediate)
- Insert an Interval (Intermediate)
- Remove Invalid Parentheses (Intermediate)
- Subarrays Divisible by K (Intermediate)
- Permutation Inside a String (Intermediate)
- Fruit Into Two Baskets (Intermediate)
- Maximum Points From Cards (Intermediate)
- Longest Mountain Subarray (Intermediate)
- Remove K Digits to Get the Smallest Number (Intermediate)
- Arithmetic Slices (Intermediate)
- Compare Version Numbers (Intermediate)
- Find K Closest Elements (Intermediate)
- Longest Substring With At Most K Letters (Intermediate)
- Maximum Events Attended (Intermediate)
- Shortest Bridge Between Two Islands (Intermediate)
- 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)
- Shortest Path In Binary Grid (Intermediate)
- Is Bipartite (Intermediate)
- Course Schedule Feasible (Intermediate)
- Weighted Job Scheduling (Intermediate)
- LFU Cache Operations (Intermediate)
- Sparse Vector Dot Product (Intermediate)
- Snapshot Array (Intermediate)
- Text Justification (Intermediate)
- Remove Nth Node From End (Intermediate)
- Swap Nodes in Pairs (Intermediate)
- Reorder Linked List (Intermediate)
- Kth Smallest Value in a BST (Intermediate)
- Binary Tree Right Side View (Intermediate)
- Zigzag Level Order Traversal (Intermediate)
- Lowest Common Ancestor of Two Values (Intermediate)
- Deepest Leaves Sum (Intermediate)
- Merge In Between Linked Lists (Intermediate)
- Tree From Inorder and Postorder (Intermediate)
- Maximum Width of Binary Tree (Intermediate)
- Graph Valid Tree (Intermediate)
- Rotting Oranges (Intermediate)
- Surrounded Regions (Intermediate)
- Pacific Atlantic Water Flow (Intermediate)
- Course Schedule Order (Intermediate)
- Cheapest Flights Within K Stops (Intermediate)
- Snakes and Ladders (Intermediate)
- Open the Lock (Intermediate)
- As Far From Land as Possible (Intermediate)
- Regions Cut by Slashes (Intermediate)
- Maximal Square (Intermediate)
- Combination Sum IV (Intermediate)
- Partition Array for Maximum Sum (Intermediate)
- Delete and Earn (Intermediate)
- Two Keys Keyboard (Intermediate)
Related
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.