← TikTok roles

Interview question tracker

TikTok Coding Interview Questions — All time

Practice 425 coding questions from TikTok company-tagged LeetCode lists across all available reporting periods. Explore reported interview questions and track your progress.

Company-wide data from Fahad7177-jeh/leetcode-company-wise-questions; see its AGPL-3.0 license. All-time questions also use dataengineervishal/leetcode-companywise-questions (MIT license).

Reporting periods reflect source data, not verified interview dates. Questions can recur; inclusion does not guarantee they will appear in your interview.

Updated weekly · Latest source check: ⓘLatest successful check of the sources used by this company. A check does not necessarily mean the questions changed.

One question at a time.

Top questions 425

DoneQuestionLeetCode
LRU CacheSolve
Number of IslandsSolve
Course Schedule IISolve
Longest Increasing SubsequenceSolve
Longest Substring Without Repeating CharactersSolve
Meeting Rooms IISolve
Merge IntervalsSolve
Number of Distinct IslandsSolve
Trapping Rain WaterSolve
3SumSolve
Coin ChangeSolve
Course ScheduleSolve
Decode StringSolve
Insert Delete GetRandom O(1)Solve
Kth Largest Element in an ArraySolve
Longest Palindromic SubstringSolve
Making A Large IslandSolve
Maximum Value at a Given Index in a Bounded ArraySolve
Merge k Sorted ListsSolve
Minimum Window SubstringSolve
N-QueensSolve
Reorganize StringSolve
Restore IP AddressesSolve
Search in Rotated Sorted ArraySolve
Sqrt(x)Solve
Subarray Sum Equals KSolve
Subarray With Elements Greater Than Varying ThresholdSolve
Text JustificationSolve
Top K Frequent ElementsSolve
Word SearchSolve
Alien DictionarySolve
Asteroid CollisionSolve
Basic CalculatorSolve
Basic Calculator IISolve
Basic Calculator IIISolve
Best Time to Buy and Sell StockSolve
Best Time to Buy and Sell Stock IISolve
Binary Tree Maximum Path SumSolve
Binary Tree Right Side ViewSolve
Bus RoutesSolve
Capacity To Ship Packages Within D DaysSolve
Closest Prime Numbers in RangeSolve
Combination SumSolve
Construct Binary Tree from Preorder and Inorder TraversalSolve
Container With Most WaterSolve
Count the Hidden SequencesSolve
Daily TemperaturesSolve
Design HashMapSolve
Design In-Memory File SystemSolve
Edit DistanceSolve
Find First and Last Position of Element in Sorted ArraySolve
Find Peak ElementSolve
Frog JumpSolve
Generate ParenthesesSolve
Group AnagramsSolve
House RobberSolve
Longest Consecutive SequenceSolve
Longest Happy StringSolve
Longest Increasing Path in a MatrixSolve
Longest Substring with At Least K Repeating CharactersSolve
Lowest Common Ancestor of a Binary TreeSolve
Max Area of IslandSolve
Maximum SwapSolve
Meeting Rooms IIISolve
Minimum Remove to Make Valid ParenthesesSolve
Minimum Swaps to Group All 1's TogetherSolve
Number of Good Leaf Nodes PairsSolve
Pacific Atlantic Water FlowSolve
PermutationsSolve
Random Pick with WeightSolve
Serialize and Deserialize Binary TreeSolve
Shortest Path in a Grid with Obstacles EliminationSolve
Snapshot ArraySolve
Sort ColorsSolve
Spiral MatrixSolve
Two SumSolve
Valid ParenthesesSolve
Valid Parenthesis StringSolve
Word Break IISolve
Word LadderSolve
Word Search IISolve
132 PatternSolve
3Sum SmallerSolve
Add StringsSolve
Add Two NumbersSolve
Best Time to Buy and Sell Stock with Transaction FeeSolve
Brightest Position on StreetSolve
Cheapest Flights Within K StopsSolve
Climbing StairsSolve
Combination Sum IISolve
CombinationsSolve
Compare Version NumbersSolve
Convert Binary Search Tree to Sorted Doubly Linked ListSolve
Count Complete Subarrays in an ArraySolve
Design Add and Search Words Data StructureSolve
Design Search Autocomplete SystemSolve
Design Tic-Tac-ToeSolve
Evaluate DivisionSolve
Find All Possible Recipes from Given SuppliesSolve
Find Median from Data StreamSolve
Find Minimum in Rotated Sorted ArraySolve
Find the Length of the Longest Common PrefixSolve
Find the Score of All Prefixes of an ArraySolve
Furthest Building You Can ReachSolve
Greatest Common Divisor of StringsSolve
Incremental Memory LeakSolve
Insert Delete GetRandom O(1) - Duplicates allowedSolve
Jump GameSolve
Jump Game IISolve
Koko Eating BananasSolve
Kth Missing Positive NumberSolve
Kth Smallest Element in a Sorted MatrixSolve
Length of the Longest Alphabetical Continuous SubstringSolve
Lexicographically Smallest Generated StringSolve
Longest Common PrefixSolve
Longest Substring with At Most Two Distinct CharactersSolve
Longest Valid ParenthesesSolve
Matchsticks to SquareSolve
Max Consecutive Ones IIISolve
Maximal SquareSolve
Maximum Points You Can Obtain from CardsSolve
Maximum SubarraySolve
Meeting RoomsSolve
Merge Sorted ArraySolve
Minimize Malware SpreadSolve
Minimum Cost Good CaptionSolve
Minimum Moves to Pick K OnesSolve
Minimum Operations to Make Character Frequencies EqualSolve
Minimum Path SumSolve
Minimum Size Subarray SumSolve
Most Popular Video CreatorSolve
Move ZeroesSolve
Multiply StringsSolve
Next PermutationSolve
Optimal Account BalancingSolve
Pairs of Songs With Total Durations Divisible by 60Solve
Parallel Courses IIISolve
Partition Equal Subset SumSolve
Path Sum IVSolve
Permutations IISolve
Possible BipartitionSolve
Rearrange String k Distance ApartSolve
Reformat DateSolve
Regular Expression MatchingSolve
Remove All Adjacent Duplicates in String IISolve
Remove Invalid ParenthesesSolve
Reorder ListSolve
Reverse Linked ListSolve
Reverse Nodes in k-GroupSolve
Rotting OrangesSolve
Score of ParenthesesSolve
Shortest BridgeSolve
Simplify PathSolve
Sliding Window MaximumSolve
Sort ListSolve
Split Message Based on LimitSolve
Stickers to Spell WordSolve
Subarray Sums Divisible by KSolve
SubsetsSolve
Sum of Subarray MinimumsSolve
Unique Binary Search TreesSolve
Valid PalindromeSolve
Valid Palindrome IISolve
Validate IP AddressSolve
Walls and GatesSolve
Water and Jug ProblemSolve
Word BreakSolve
Add Two Numbers IISolve
Best Time to Buy and Sell Stock IIISolve
Best Time to Buy and Sell Stock IVSolve
Binary Tree Vertical Order TraversalSolve
Binary Tree Zigzag Level Order TraversalSolve
Coin Change IISolve
Count Pairs Of Similar StringsSolve
Course Schedule IVSolve
Cousins in Binary TreeSolve
Decode WaysSolve
Expression Add OperatorsSolve
Find All Duplicates in an ArraySolve
Flip String to Monotone IncreasingSolve
Fraction to Recurring DecimalSolve
Gas StationSolve
Happy NumberSolve
HeatersSolve
House Robber IISolve
Implement Trie (Prefix Tree)Solve
Increasing Triplet SubsequenceSolve
Integer to RomanSolve
Intersection of Two Linked ListsSolve
Is Graph Bipartite?Solve
Largest NumberSolve
Largest Rectangle in HistogramSolve
LFU CacheSolve
Longest Repeating Character ReplacementSolve
Longest Substring with At Most K Distinct CharactersSolve
Make Array Non-decreasing or Non-increasingSolve
Max StackSolve
Maximum Product of Three NumbersSolve
Maximum Product SubarraySolve
Maximum Width of Binary TreeSolve
Median of Two Sorted ArraysSolve
Merge Operations to Turn Array Into a PalindromeSolve
Merge Two Sorted ListsSolve
Min Cost to Connect All PointsSolve
Minimum Cost For TicketsSolve
Minimum Increment to Make Array UniqueSolve
Minimum Insertions to Balance a Parentheses StringSolve
Minimum Moves to Spread Stones Over GridSolve
Minimum Obstacle Removal to Reach CornerSolve
Minimum Operations to Write the Letter Y on a GridSolve
Next Greater Element IISolve
Next Greater Element IIISolve
Number of AtomsSolve
Number of Islands IISolve
Number of Visible People in a QueueSolve
Numbers At Most N Given Digit SetSolve
Open the LockSolve
Path Sum IISolve
Path Sum IIISolve
Pow(x, n)Solve
Random Pick IndexSolve
Regions Cut By SlashesSolve
Remove Duplicate LettersSolve
Remove Duplicates from Sorted Array IISolve
Remove K DigitsSolve
Reorder Routes to Make All Paths Lead to the City ZeroSolve
Reverse Linked List IISolve
Reverse Words in a StringSolve
Robot Room CleanerSolve
Rotate ArraySolve
Search a 2D MatrixSolve
Search Suggestions SystemSolve
Sentence Similarity IIISolve
Shortest Path in Binary MatrixSolve
Shortest Unsorted Continuous SubarraySolve
Smallest Common RegionSolve
Step-By-Step Directions From a Binary Tree Node to AnotherSolve
String CompressionSolve
Subarrays with K Different IntegersSolve
Super Egg DropSolve
Surrounded RegionsSolve
Swap Nodes in PairsSolve
Tree DiameterSolve
Unique Paths IISolve
01 MatrixSolve
2 Keys KeyboardSolve
24 GameSolve
4SumSolve
Add Bold Tag in StringSolve
Add Two IntegersSolve
All Nodes Distance K in Binary TreeSolve
Arithmetic SlicesSolve
Balance a Binary Search TreeSolve
Best Time to Buy and Sell Stock with CooldownSolve
Binary Tree Longest Consecutive SequenceSolve
Buildings With an Ocean ViewSolve
CandySolve
Candy CrushSolve
Car PoolingSolve
Champagne TowerSolve
Clone GraphSolve
Combination Sum IVSolve
Concatenated WordsSolve
Consecutive Numbers SumSolve
Construct String from Binary TreeSolve
Contains DuplicateSolve
Contiguous ArraySolve
Convert Sorted Array to Binary Search TreeSolve
Copy List with Random PointerSolve
Count Number of Nice SubarraysSolve
Count of Smaller Numbers After SelfSolve
Count Paths That Can Form a Palindrome in a TreeSolve
Count PrimesSolve
Count Square Submatrices with All OnesSolve
Count the Number of Good SubarraysSolve
Deepest Leaves SumSolve
Degree of an ArraySolve
Delete and EarnSolve
Design a Text EditorSolve
Design Browser HistorySolve
Design File SystemSolve
Design Memory AllocatorSolve
Diagonal TraverseSolve
Diameter of Binary TreeSolve
Distinct SubsequencesSolve
Dot Product of Two Sparse VectorsSolve
Encode and Decode StringsSolve
Event EmitterSolve
Factor CombinationsSolve
Find a Peak Element IISolve
Find All Anagrams in a StringSolve
Find K Closest ElementsSolve
Find Maximum Non-decreasing Array LengthSolve
Find Palindrome With Fixed LengthSolve
Find Pivot IndexSolve
Find Positive Integer Solution for a Given EquationSolve
Find Target Indices After Sorting ArraySolve
Find the CelebritySolve
Find the Duplicate NumberSolve
First Missing PositiveSolve
Flatten Deeply Nested ArraySolve
Frequency of the Most Frequent ElementSolve
Game of LifeSolve
Graph Valid TreeSolve
H-IndexSolve
House Robber IIISolve
Human Traffic of StadiumSolve
Implement Queue using StacksSolve
Insert IntervalSolve
Insert into a Sorted Circular Linked ListSolve
Integer BreakSolve
Invert Binary TreeSolve
Is SubsequenceSolve
Isomorphic StringsSolve
Jump Game IVSolve
K-th Smallest in Lexicographical OrderSolve
Knight DialerSolve
Kth Smallest Element in a BSTSolve
Largest BST SubtreeSolve
Least Number of Unique Integers after K RemovalsSolve
Length of Longest Subarray With at Most K FrequencySolve
Length of the Longest Valid SubstringSolve
Letter Case PermutationSolve
Letter Combinations of a Phone NumberSolve
Lexicographical NumbersSolve
Lexicographically Smallest PalindromeSolve
Linked List Cycle IISolve
Longest Common SubsequenceSolve
Longest Duplicate SubstringSolve
Longest Repeating SubstringSolve
Longest String ChainSolve
Lowest Common Ancestor of a Binary Search TreeSolve
Make Costs of Paths Equal in a Binary TreeSolve
Maximal RectangleSolve
Maximal Score After Applying K OperationsSolve
Maximum Candies Allocated to K ChildrenSolve
Maximum Frequency StackSolve
Maximum Number of Events That Can Be AttendedSolve
Maximum Performance of a TeamSolve
Maximum Profit in Job SchedulingSolve
Maximum Spending After Buying ItemsSolve
Maximum Width RampSolve
Merge In Between Linked ListsSolve
MinesweeperSolve
Minimize Malware Spread IISolve
Minimum Add to Make Parentheses ValidSolve
Minimum Difficulty of a Job ScheduleSolve
Minimum Number of Arrows to Burst BalloonsSolve
Minimum Number of Operations to Move All Balls to Each BoxSolve
Minimum Swaps to Group All 1's Together IISolve
Minimum Time DifferenceSolve
Missing RangesSolve
Most Profit Assigning WorkSolve
Most Stones Removed with Same Row or ColumnSolve
My Calendar ISolve
Network Delay TimeSolve
Next Greater Element ISolve
Non-overlapping IntervalsSolve
Nth DigitSolve
Nth Highest SalarySolve
Number of Adjacent Elements With the Same ColorSolve
Number of Connected Components in an Undirected GraphSolve
Number of Good PathsSolve
Number of Longest Increasing SubsequenceSolve
Number of Substrings Containing All Three CharactersSolve
Odd Even Linked ListSolve
Parallel CoursesSolve
Parallel Courses IISolve
Patching ArraySolve
Path SumSolve
Path With Minimum EffortSolve
Peeking IteratorSolve
Perfect SquaresSolve
Permutation in StringSolve
Plus OneSolve
Prefix and Suffix SearchSolve
Process Tasks Using ServersSolve
Product of Array Except SelfSolve
Put Marbles in BagsSolve
Range Frequency QueriesSolve
Range Sum Query - MutableSolve
Rearranging FruitsSolve
Recover Binary Search TreeSolve
Redundant ConnectionSolve
Remove Duplicates from Sorted List IISolve
Remove Nth Node From End of ListSolve
Replace WordsSolve
Roman to IntegerSolve
Rotate ImageSolve
Russian Doll EnvelopesSolve
Search a 2D Matrix IISolve
Shortest Distance from All BuildingsSolve
Shortest PalindromeSolve
Shortest Subarray to be Removed to Make Array SortedSolve
Snakes and LaddersSolve
Sort Characters By FrequencySolve
Sparse Matrix MultiplicationSolve
Spiral Matrix IISolve
Split Array With Same AverageSolve
String Transforms Into Another StringSolve
Subarray Product Less Than KSolve
Sum of All Subset XOR TotalsSolve
Sum of Subarray RangesSolve
Symmetric TreeSolve
Task SchedulerSolve
The MazeSolve
The Maze IISolve
The Skyline ProblemSolve
Time Based Key-Value StoreSolve
Top K Frequent WordsSolve
Two Sum II - Input Array Is SortedSolve
Unique PathsSolve
Valid AnagramSolve
Valid Mountain ArraySolve
Valid NumberSolve
Valid Palindrome IIISolve
Valid SquareSolve
Valid SudokuSolve
Valid Word AbbreviationSolve
Verify Preorder Sequence in Binary Search TreeSolve
Verifying an Alien DictionarySolve
Vertical Order Traversal of a Binary TreeSolve
Wiggle SortSolve
Wildcard MatchingSolve
Word Ladder IISolve