preloader
  • Home
  • Previous Questions

Contains previous problem statements given by various recruitors during their selection process.

1st Jan, 0001

TIKTOK

IDQuestions
1Two Sum
3Longest Substring Without Repeating Characters
4Median of Two Sorted Arrays
5Longest Palindromic Substring
10Regular Expression Matching
11Container With Most Water
12Integer to Roman
13Roman to Integer
153Sum
20Valid Parentheses
22Generate Parentheses
23Merge k Sorted Lists
25Reverse Nodes in k-Group
31Next Permutation
32Longest Valid Parentheses
33Search in Rotated Sorted Array
34Find First and Last Position of Element in Sorted Array
37Sudoku Solver
39Combination Sum
40Combination Sum II
41First Missing Positive
42Trapping Rain Water
43Multiply Strings
45Jump Game II
46Permutations
47Permutations II
48Rotate Image
49Group Anagrams
50Pow(x, n)
51N-Queens
53Maximum Subarray
54Spiral Matrix
55Jump Game
56Merge Intervals
57Insert Interval
59Spiral Matrix II
62Unique Paths
66Plus One
68Text Justification
69Sqrt(x)
72Edit Distance
74Search a 2D Matrix
75Sort Colors
76Minimum Window Substring
78Subsets
79Word Search
80Remove Duplicates from Sorted Array II
88Merge Sorted Array
90Subsets II
91Decode Ways
92Reverse Linked List II
93Restore IP Addresses
98Validate Binary Search Tree
101Symmetric Tree
102Binary Tree Level Order Traversal
103Binary Tree Zigzag Level Order Traversal
105Construct Binary Tree from Preorder and Inorder Traversal
113Path Sum II
115Distinct Subsequences
117Populating Next Right Pointers in Each Node II
121Best Time to Buy and Sell Stock
123Best Time to Buy and Sell Stock III
124Binary Tree Maximum Path Sum
125Valid Palindrome
127Word Ladder
130Surrounded Regions
131Palindrome Partitioning
133Clone Graph
134Gas Station
139Word Break
142Linked List Cycle II
146LRU Cache
148Sort List
151Reverse Words in a String
152Maximum Product Subarray
153Find Minimum in Rotated Sorted Array
159Longest Substring with At Most Two Distinct Characters
160Intersection of Two Linked Lists
162Find Peak Element
163Missing Ranges
165Compare Version Numbers
179Largest Number
188Best Time to Buy and Sell Stock IV
198House Robber
199Binary Tree Right Side View
200Number of Islands
202Happy Number
204Count Primes
206Reverse Linked List
207Course Schedule
209Minimum Size Subarray Sum
210Course Schedule II
212Word Search II
213House Robber II
215Kth Largest Element in an Array
221Maximal Square
222Count Complete Tree Nodes
224Basic Calculator
227Basic Calculator II
236Lowest Common Ancestor of a Binary Tree
238Product of Array Except Self
239Sliding Window Maximum
253Meeting Rooms II
254Factor Combinations
2593Sum Smaller
261Graph Valid Tree
269Alien Dictionary
278First Bad Version
282Expression Add Operators
283Move Zeroes
286Walls and Gates
295Find Median from Data Stream
297Serialize and Deserialize Binary Tree
300Longest Increasing Subsequence
301Remove Invalid Parentheses
305Number of Islands II
314Binary Tree Vertical Order Traversal
316Remove Duplicate Letters
322Coin Change
323Number of Connected Components in an Undirected Graph
329Longest Increasing Path in a Matrix
331Verify Preorder Serialization of a Binary Tree
333Largest BST Subtree
334Increasing Triplet Subsequence
340Longest Substring with At Most K Distinct Characters
347Top K Frequent Elements
353Design Snake Game
354Russian Doll Envelopes
355Design Twitter
360Sort Transformed Array
378Kth Smallest Element in a Sorted Matrix
380Insert Delete GetRandom O(1)
386Lexicographical Numbers
387First Unique Character in a String
392Is Subsequence
394Decode String
395Longest Substring with At Least K Repeating Characters
398Random Pick Index
399Evaluate Division
400Nth Digit
402Remove K Digits
403Frog Jump
410Split Array Largest Sum
414Third Maximum Number
415Add Strings
416Partition Equal Subset Sum
417Pacific Atlantic Water Flow
418Sentence Screen Fitting
424Longest Repeating Character Replacement
435Non-overlapping Intervals
437Path Sum III
438Find All Anagrams in a String
443String Compression
460LFU Cache
468Validate IP Address
480Sliding Window Median
486Predict the Winner
487Max Consecutive Ones II
490The Maze
493Reverse Pairs
503Next Greater Element II
523Continuous Subarray Sum
547Number of Provinces
556Next Greater Element III
560Subarray Sum Equals K
562Longest Line of Consecutive One in Matrix
572Subtree of Another Tree
588Design In-Memory File System
617Merge Two Binary Trees
621Task Scheduler
652Find Duplicate Subtrees
658Find K Closest Elements
662Maximum Width of Binary Tree
666Path Sum IV
670Maximum Swap
680Valid Palindrome II
684Redundant Connection
694Number of Distinct Islands
695Max Area of Island
696Count Binary Substrings
721Accounts Merge
722Remove Comments
724Find Pivot Index
735Asteroid Collision
739Daily Temperatures
744Network Delay Time
753Open the Lock
778Reorganize String
785Basic Calculator III
787Sliding Puzzle
796Reaching Points
801Is Graph Bipartite?
803Cheapest Flights Within K Stops
806Domino and Tromino Tiling
807Custom Sort String
815Champagne Tower
833Bus Routes
854Making A Large Island
860Design Circular Queue
863Sum of Distances in Tree
865Robot Room Cleaner
869Similar String Groups
874Backspace String Compare
885Exam Room
886Score of Parentheses
907Koko Eating Bananas
909Stone Game
912Random Pick with Weight
922Possible Bipartition
932Monotonic Array
957Minimum Add to Make Parentheses Valid
960Minimize Malware Spread
971Shortest Bridge
982Minimum Increment to Make Array Unique
983Validate Stack Sequences
984Most Stones Removed with Same Row or Column
990Verifying an Alien Dictionary
1008Binary Tree Cameras
1023Time Based Key-Value Store
1034Subarrays with K Different Integers
1035Cousins in Binary Tree
1036Rotting Oranges
1044Find Common Characters
1046Max Consecutive Ones III
1055Pairs of Songs With Total Durations Divisible by 60
1056Capacity To Ship Packages Within D Days
1081Video Stitching
1083Two Sum Less Than K
1087Longest Arithmetic Subsequence
1095Two City Scheduling
1129Longest String Chain
1165Meeting Scheduler
1171Shortest Path in Binary Matrix
1283Reformat Date
1305Number of Visible People in a Queue
1320Remove All Adjacent Duplicates in String II
1352Maximum Profit in Job Scheduling
1371Minimum Remove to Make Valid Parentheses
1375Find Palindrome With Fixed Length
1397Search Suggestions System
1400Find Winner on a Tic Tac Toe Game
1414Shortest Path in a Grid with Obstacles Elimination
1418Fair Distribution of Cookies
1422Divide Array in Sets of K Consecutive Numbers
1447Jump Game IV
1457Minimum Difficulty of a Job Schedule
1477Product of the Last K Numbers
1483Rank Teams by Votes
1497Design a Stack With Increment Operation
1555Number of Ways of Cutting a Pizza
1579Active Users
1646Kth Missing Positive Number
1648Minimum Insertions to Balance a Parentheses String
1653Number of Good Leaf Nodes Pairs
1678Number of Ways to Split a String
1687The Most Similar Path in a Graph
1900Closest Dessert Cost
1909Buildings With an Ocean View
1971Incremental Memory Leak
1972Rotating the Box
2047Find a Peak Element II
2088Minimum Time to Type Word Using Special Typewriter
2123The Number of Weak Characters in the Game
2165Plates Between Candles
2210Find Target Indices After Sorting Array
2217Step-By-Step Directions From a Binary Tree Node to Another
2220Find All Possible Recipes from Given Supplies
2249Count the Hidden Sequences
2297Amount of New Area Painted Each Day
2492Length of the Longest Alphabetical Continuous Substring
2505Number of Good Paths
2543Most Popular Video Creator
2565Merge Operations to Turn Array Into a Palindrome
2610Closest Prime Numbers in Range
2676Find the Score of All Prefixes of an Array
2682Count Increasing Quadruplets
2765Make Array Empty
2856Count Complete Subarrays in an Array
3158Maximum Length of Semi-Decreasing Subarrays