← TikTok roles

Interview question tracker

TikTok SDE 1

The 348 highest-frequency questions from all time. Finish the strongest signals first.

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 348

DoneQuestionLeetCode
LRU CacheSolve
Number of IslandsSolve
Longest Increasing SubsequenceSolve
Longest Substring Without Repeating CharactersSolve
Number of Distinct IslandsSolve
Course Schedule IISolve
Meeting Rooms IISolve
Merge IntervalsSolve
Trapping Rain WaterSolve
Course ScheduleSolve
Text JustificationSolve
Decode StringSolve
Longest Palindromic SubstringSolve
Minimum Window SubstringSolve
Search in Rotated Sorted ArraySolve
Word SearchSolve
N-QueensSolve
3SumSolve
Coin ChangeSolve
Minimum Swaps to Group All 1's TogetherSolve
Spiral MatrixSolve
Subarray Sum Equals KSolve
Longest Consecutive SequenceSolve
Subarray With Elements Greater Than Varying ThresholdSolve
Top K Frequent ElementsSolve
Making A Large IslandSolve
Maximum SwapSolve
Merge k Sorted ListsSolve
Basic Calculator IIISolve
House RobberSolve
Longest Happy StringSolve
Maximum Value at a Given Index in a Bounded ArraySolve
Snapshot ArraySolve
Sqrt(x)Solve
Valid ParenthesesSolve
Basic Calculator IISolve
Best Time to Buy and Sell StockSolve
Two SumSolve
Insert Delete GetRandom O(1)Solve
Kth Largest Element in an ArraySolve
Longest Increasing Path in a MatrixSolve
Valid Parenthesis StringSolve
Word LadderSolve
Add StringsSolve
Daily TemperaturesSolve
Design HashMapSolve
Find Median from Data StreamSolve
Generate ParenthesesSolve
Meeting Rooms IIISolve
Sort ColorsSolve
Word Search IISolve
Binary Tree Maximum Path SumSolve
Construct Binary Tree from Preorder and Inorder TraversalSolve
Count the Hidden SequencesSolve
Edit DistanceSolve
Lexicographically Smallest Generated StringSolve
Max Area of IslandSolve
Minimum Cost Good CaptionSolve
Minimum Operations to Make Character Frequencies EqualSolve
Reorder ListSolve
Serialize and Deserialize Binary TreeSolve
Word Break IISolve
Basic CalculatorSolve
Binary Tree Right Side ViewSolve
Find First and Last Position of Element in Sorted ArraySolve
Reverse Linked ListSolve
Simplify PathSolve
Subarray Sums Divisible by KSolve
Bus RoutesSolve
Climbing StairsSolve
Closest Prime Numbers in RangeSolve
Combination SumSolve
Container With Most WaterSolve
Count Complete Subarrays in an ArraySolve
Design Add and Search Words Data StructureSolve
Find Peak ElementSolve
Find the Score of All Prefixes of an ArraySolve
Incremental Memory LeakSolve
Jump GameSolve
Length of the Longest Alphabetical Continuous SubstringSolve
Minimum Moves to Pick K OnesSolve
Most Popular Video CreatorSolve
Pacific Atlantic Water FlowSolve
Possible BipartitionSolve
Remove Duplicate LettersSolve
Rotting OrangesSolve
Shortest BridgeSolve
Shortest Path in a Grid with Obstacles EliminationSolve
Word BreakSolve
Alien DictionarySolve
Brightest Position on StreetSolve
Compare Version NumbersSolve
Evaluate DivisionSolve
Gas StationSolve
Greatest Common Divisor of StringsSolve
Group AnagramsSolve
Koko Eating BananasSolve
Longest Substring with At Least K Repeating CharactersSolve
Lowest Common Ancestor of a Binary TreeSolve
Meeting RoomsSolve
Minimum Size Subarray SumSolve
PermutationsSolve
Random Pick with WeightSolve
Regular Expression MatchingSolve
Reverse Nodes in k-GroupSolve
Sliding Window MaximumSolve
Best Time to Buy and Sell Stock IISolve
Capacity To Ship Packages Within D DaysSolve
Design In-Memory File SystemSolve
Find Minimum in Rotated Sorted ArraySolve
Jump Game IISolve
Kth Missing Positive NumberSolve
Longest Common PrefixSolve
Longest Mountain in ArraySolve
Longest Substring with At Most K Distinct CharactersSolve
Longest Valid ParenthesesSolve
Matchsticks to SquareSolve
Maximum SubarraySolve
Minimum Remove to Make Valid ParenthesesSolve
Multiply StringsSolve
Partition Equal Subset SumSolve
Restore IP AddressesSolve
Rotate ArraySolve
SubsetsSolve
Super Egg DropSolve
Water and Jug ProblemSolve
All O`one Data StructureSolve
Asteroid CollisionSolve
Binary Tree Longest Consecutive SequenceSolve
Cheapest Flights Within K StopsSolve
Count Number of Nice SubarraysSolve
Course Schedule IVSolve
Find All Duplicates in an ArraySolve
Frog JumpSolve
Largest Rectangle in HistogramSolve
Min Cost to Connect All PointsSolve
Minimum Operations to Write the Letter Y on a GridSolve
Minimum Path SumSolve
Move ZeroesSolve
Next PermutationSolve
Numbers At Most N Given Digit SetSolve
Permutations IISolve
Remove All Adjacent Duplicates in String IISolve
Remove Invalid ParenthesesSolve
Reorder Routes to Make All Paths Lead to the City ZeroSolve
Reorganize StringSolve
Shortest Unsorted Continuous SubarraySolve
Split Message Based on LimitSolve
2 Keys KeyboardSolve
Best Time to Buy and Sell Stock IIISolve
Best Time to Buy and Sell Stock IVSolve
Binary Tree Zigzag Level Order TraversalSolve
Convert Binary Search Tree to Sorted Doubly Linked ListSolve
Design Memory AllocatorSolve
Design Search Autocomplete SystemSolve
Design Tic-Tac-ToeSolve
Find All Possible Recipes from Given SuppliesSolve
Find the Length of the Longest Common PrefixSolve
House Robber IISolve
Kth Smallest Element in a Sorted MatrixSolve
Longest Common SubsequenceSolve
Longest Substring with At Most Two Distinct CharactersSolve
Make Costs of Paths Equal in a Binary TreeSolve
Max Consecutive Ones IIISolve
Maximal SquareSolve
Maximum Product of Three NumbersSolve
Merge Operations to Turn Array Into a PalindromeSolve
Minimum Cost For TicketsSolve
Number of Good Leaf Nodes PairsSolve
Number of Visible People in a QueueSolve
Open the LockSolve
Path Sum IIISolve
Regions Cut By SlashesSolve
Remove K DigitsSolve
Robot Room CleanerSolve
Search a 2D MatrixSolve
Sentence Similarity IIISolve
Shortest Path in Binary MatrixSolve
Snakes and LaddersSolve
Swap Nodes in PairsSolve
Tree DiameterSolve
Unique Paths IISolve
Accounts MergeSolve
Add Bold Tag in StringSolve
All Nodes Distance K in Binary TreeSolve
Best Time to Buy and Sell Stock with CooldownSolve
Best Time to Buy and Sell Stock with Transaction FeeSolve
CandySolve
Champagne TowerSolve
Coin Change IISolve
Combination Sum IISolve
CombinationsSolve
Contiguous ArraySolve
Deepest Leaves SumSolve
Delete and EarnSolve
Diameter of Binary TreeSolve
Find All Anagrams in a StringSolve
Find the Duplicate NumberSolve
Flatten Deeply Nested ArraySolve
Fruit Into BasketsSolve
House Robber IIISolve
Insert Delete GetRandom O(1) - Duplicates allowedSolve
Intersection of Two Linked ListsSolve
Is Graph Bipartite?Solve
Largest NumberSolve
Letter Case PermutationSolve
LFU CacheSolve
Longest Duplicate SubstringSolve
Max StackSolve
Maximum Points You Can Obtain from CardsSolve
Maximum Product SubarraySolve
Maximum Width of Binary TreeSolve
Maximum Width RampSolve
Median of Two Sorted ArraysSolve
Merge In Between Linked ListsSolve
Merge Two Sorted ListsSolve
Minimize Malware SpreadSolve
Minimum Difficulty of a Job ScheduleSolve
Minimum Increment to Make Array UniqueSolve
Minimum Moves to Spread Stones Over GridSolve
Minimum Number of Arrows to Burst BalloonsSolve
My Calendar ISolve
Non-overlapping IntervalsSolve
Number of AtomsSolve
Number of Connected Components in an Undirected GraphSolve
Pairs of Songs With Total Durations Divisible by 60Solve
Partition Array for Maximum SumSolve
Path Sum IISolve
Permutation in StringSolve
Product of the Last K NumbersSolve
Remove Duplicates from Sorted Array IISolve
Replace WordsSolve
Reverse Linked List IISolve
Reverse Words in a StringSolve
Roman to IntegerSolve
Rotate ImageSolve
Score of ParenthesesSolve
Search Suggestions SystemSolve
Serialize and Deserialize N-ary TreeSolve
Shortest Distance from All BuildingsSolve
Sort ListSolve
Step-By-Step Directions From a Binary Tree Node to AnotherSolve
String CompressionSolve
Sum of Subarray MinimumsSolve
Task SchedulerSolve
Time Based Key-Value StoreSolve
Valid PalindromeSolve
Valid Palindrome IISolve
Walls and GatesSolve
24 GameSolve
3Sum SmallerSolve
Add Two IntegersSolve
Add Two NumbersSolve
Add Two Numbers IISolve
Arithmetic SlicesSolve
As Far from Land as PossibleSolve
Candy CrushSolve
Combination Sum IVSolve
Concatenated WordsSolve
Consecutive Numbers SumSolve
Construct Binary Tree from Inorder and Postorder TraversalSolve
Convert Sorted Array to Binary Search TreeSolve
Copy List with Random PointerSolve
Count Binary SubstringsSolve
Count Pairs Of Similar StringsSolve
Count the Number of Good SubarraysSolve
Department Top Three SalariesSolve
Diagonal TraverseSolve
Dot Product of Two Sparse VectorsSolve
Employee Free TimeSolve
Encode and Decode StringsSolve
Event EmitterSolve
Expression Add OperatorsSolve
Find K Closest ElementsSolve
Find Maximum Non-decreasing Array LengthSolve
Find Positive Integer Solution for a Given EquationSolve
Find the CelebritySolve
Flip Game IISolve
Furthest Building You Can ReachSolve
Graph Valid TreeSolve
Happy NumberSolve
HeatersSolve
Human Traffic of StadiumSolve
Implement Queue using StacksSolve
Implement Rand10() Using Rand7()Solve
Implement Trie (Prefix Tree)Solve
Insert IntervalSolve
Insert into a Sorted Circular Linked ListSolve
Integer to RomanSolve
K-th Smallest in Lexicographical OrderSolve
Kth Smallest Element in a BSTSolve
Length of Longest Subarray With at Most K FrequencySolve
Lowest Common Ancestor of a Binary Tree IIISolve
Lowest Common Ancestor of a Binary Tree IVSolve
Maximal Score After Applying K OperationsSolve
Maximum Number of Events That Can Be AttendedSolve
Maximum Performance of a TeamSolve
Maximum Profit in Job SchedulingSolve
Maximum Size Subarray Sum Equals kSolve
Maximum Spending After Buying ItemsSolve
Maximum Sum Circular SubarraySolve
Merge Sorted ArraySolve
MinesweeperSolve
Minimum Absolute Difference Between Elements With ConstraintSolve
Minimum Number of Operations to Move All Balls to Each BoxSolve
Minimum Operations to Make the Array IncreasingSolve
Minimum Swaps to Group All 1's Together IISolve
Next Greater Element ISolve
Next Greater Element IISolve
Nth DigitSolve
Number of Adjacent Elements With the Same ColorSolve
Number of Longest Increasing SubsequenceSolve
Parallel CoursesSolve
Parallel Courses IIISolve
Partition to K Equal Sum SubsetsSolve
Path SumSolve
Plus OneSolve
Pow(x, n)Solve
Put Marbles in BagsSolve
Rearrange String k Distance ApartSolve
Rearranging FruitsSolve
Recover Binary Search TreeSolve
Remove Duplicates from Sorted List IISolve
Remove Nth Node From End of ListSolve
Robot Bounded In CircleSolve
Search a 2D Matrix IISolve
Shortest Subarray to be Removed to Make Array SortedSolve
Sort an ArraySolve
Sparse Matrix MultiplicationSolve
Spiral Matrix IISolve
Stickers to Spell WordSolve
Subarrays with K Different IntegersSolve
Surrounded RegionsSolve
Symmetric TreeSolve
The Maze IISolve
Two Sum II - Input Array Is SortedSolve
Unique Binary Search TreesSolve
Unique PathsSolve
Unit Conversion IISolve
Valid Mountain ArraySolve
Valid Palindrome IIISolve
Valid SquareSolve
Valid SudokuSolve
Valid Word AbbreviationSolve
Validate IP AddressSolve
Verify Preorder Sequence in Binary Search TreeSolve
Wiggle SortSolve
Word Pattern IISolve