preloader
  • Home
  • Previous Questions

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

1st Jan, 0001

AMAZON

IDQuestions
1Two Sum
2Add Two Numbers
3Longest Substring Without Repeating Characters
4Median of Two Sorted Arrays
5Longest Palindromic Substring
6Zigzag Conversion
7Reverse Integer
8String to Integer (atoi)
9Palindrome Number
10Regular Expression Matching
11Container With Most Water
12Integer to Roman
13Roman to Integer
14Longest Common Prefix
153Sum
163Sum Closest
17Letter Combinations of a Phone Number
184Sum
19Remove Nth Node From End of List
20Valid Parentheses
21Merge Two Sorted Lists
22Generate Parentheses
23Merge k Sorted Lists
24Swap Nodes in Pairs
25Reverse Nodes in k-Group
26Remove Duplicates from Sorted Array
27Remove Element
28Find the Index of the First Occurrence in a String
29Divide Two Integers
30Substring with Concatenation of All Words
31Next Permutation
32Longest Valid Parentheses
33Search in Rotated Sorted Array
34Find First and Last Position of Element in Sorted Array
35Search Insert Position
36Valid Sudoku
37Sudoku Solver
38Count and Say
39Combination Sum
40Combination Sum II
41First Missing Positive
42Trapping Rain Water
43Multiply Strings
44Wildcard Matching
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
58Length of Last Word
59Spiral Matrix II
60Permutation Sequence
61Rotate List
62Unique Paths
63Unique Paths II
64Minimum Path Sum
65Valid Number
66Plus One
67Add Binary
68Text Justification
69Sqrt(x)
70Climbing Stairs
71Simplify Path
72Edit Distance
73Set Matrix Zeroes
74Search a 2D Matrix
75Sort Colors
76Minimum Window Substring
77Combinations
78Subsets
79Word Search
80Remove Duplicates from Sorted Array II
81Search in Rotated Sorted Array II
82Remove Duplicates from Sorted List II
83Remove Duplicates from Sorted List
84Largest Rectangle in Histogram
85Maximal Rectangle
86Partition List
87Scramble String
88Merge Sorted Array
89Gray Code
90Subsets II
91Decode Ways
92Reverse Linked List II
93Restore IP Addresses
94Binary Tree Inorder Traversal
95Unique Binary Search Trees II
96Unique Binary Search Trees
97Interleaving String
98Validate Binary Search Tree
99Recover Binary Search Tree
100Same Tree
101Symmetric Tree
102Binary Tree Level Order Traversal
103Binary Tree Zigzag Level Order Traversal
104Maximum Depth of Binary Tree
105Construct Binary Tree from Preorder and Inorder Traversal
106Construct Binary Tree from Inorder and Postorder Traversal
107Binary Tree Level Order Traversal II
108Convert Sorted Array to Binary Search Tree
109Convert Sorted List to Binary Search Tree
110Balanced Binary Tree
111Minimum Depth of Binary Tree
112Path Sum
113Path Sum II
114Flatten Binary Tree to Linked List
115Distinct Subsequences
116Populating Next Right Pointers in Each Node
117Populating Next Right Pointers in Each Node II
118Pascal’s Triangle
119Pascal’s Triangle II
120Triangle
121Best Time to Buy and Sell Stock
122Best Time to Buy and Sell Stock II
123Best Time to Buy and Sell Stock III
124Binary Tree Maximum Path Sum
125Valid Palindrome
126Word Ladder II
127Word Ladder
128Longest Consecutive Sequence
129Sum Root to Leaf Numbers
130Surrounded Regions
131Palindrome Partitioning
132Palindrome Partitioning II
133Clone Graph
134Gas Station
135Candy
136Single Number
137Single Number II
138Copy List with Random Pointer
139Word Break
140Word Break II
141Linked List Cycle
142Linked List Cycle II
143Reorder List
144Binary Tree Preorder Traversal
145Binary Tree Postorder Traversal
146LRU Cache
148Sort List
149Max Points on a Line
150Evaluate Reverse Polish Notation
151Reverse Words in a String
152Maximum Product Subarray
153Find Minimum in Rotated Sorted Array
154Find Minimum in Rotated Sorted Array II
155Min Stack
157Read N Characters Given Read4
159Longest Substring with At Most Two Distinct Characters
160Intersection of Two Linked Lists
161One Edit Distance
162Find Peak Element
164Maximum Gap
165Compare Version Numbers
167Two Sum II - Input Array Is Sorted
168Excel Sheet Column Title
169Majority Element
171Excel Sheet Column Number
173Binary Search Tree Iterator
174Dungeon Game
175Combine Two Tables
176Second Highest Salary
177Nth Highest Salary
178Rank Scores
179Largest Number
180Consecutive Numbers
181Employees Earning More Than Their Managers
182Duplicate Emails
183Customers Who Never Order
184Department Highest Salary
185Department Top Three Salaries
186Reverse Words in a String II
187Repeated DNA Sequences
188Best Time to Buy and Sell Stock IV
189Rotate Array
190Reverse Bits
191Number of 1 Bits
192Word Frequency
193Valid Phone Numbers
196Delete Duplicate Emails
197Rising Temperature
198House Robber
199Binary Tree Right Side View
200Number of Islands
201Bitwise AND of Numbers Range
202Happy Number
203Remove Linked List Elements
204Count Primes
205Isomorphic Strings
206Reverse Linked List
207Course Schedule
208Implement Trie (Prefix Tree)
209Minimum Size Subarray Sum
210Course Schedule II
211Design Add and Search Words Data Structure
212Word Search II
213House Robber II
214Shortest Palindrome
215Kth Largest Element in an Array
216Combination Sum III
217Contains Duplicate
218The Skyline Problem
219Contains Duplicate II
220Contains Duplicate III
221Maximal Square
222Count Complete Tree Nodes
223Rectangle Area
224Basic Calculator
225Implement Stack using Queues
226Invert Binary Tree
227Basic Calculator II
228Summary Ranges
229Majority Element II
230Kth Smallest Element in a BST
231Power of Two
232Implement Queue using Stacks
233Number of Digit One
234Palindrome Linked List
235Lowest Common Ancestor of a Binary Search Tree
236Lowest Common Ancestor of a Binary Tree
237Delete Node in a Linked List
238Product of Array Except Self
239Sliding Window Maximum
240Search a 2D Matrix II
241Different Ways to Add Parentheses
242Valid Anagram
243Shortest Word Distance
244Shortest Word Distance II
249Group Shifted Strings
252Meeting Rooms
253Meeting Rooms II
255Verify Preorder Sequence in Binary Search Tree
256Paint House
257Binary Tree Paths
258Add Digits
261Graph Valid Tree
262Trips and Users
263Ugly Number
265Paint House II
267Palindrome Permutation II
268Missing Number
269Alien Dictionary
270Closest Binary Search Tree Value
271Encode and Decode Strings
272Closest Binary Search Tree Value II
273Integer to English Words
274H-Index
275H-Index II
277Find the Celebrity
278First Bad Version
279Perfect Squares
280Wiggle Sort
282Expression Add Operators
283Move Zeroes
286Walls and Gates
287Find the Duplicate Number
289Game of Life
290Word Pattern
295Find Median from Data Stream
297Serialize and Deserialize Binary Tree
298Binary Tree Longest Consecutive Sequence
299Bulls and Cows
300Longest Increasing Subsequence
301Remove Invalid Parentheses
303Range Sum Query - Immutable
304Range Sum Query 2D - Immutable
305Number of Islands II
307Range Sum Query - Mutable
309Best Time to Buy and Sell Stock with Cooldown
310Minimum Height Trees
311Sparse Matrix Multiplication
312Burst Balloons
314Binary Tree Vertical Order Traversal
315Count of Smaller Numbers After Self
316Remove Duplicate Letters
318Maximum Product of Word Lengths
319Bulb Switcher
322Coin Change
323Number of Connected Components in an Undirected Graph
324Wiggle Sort II
325Maximum Size Subarray Sum Equals k
326Power of Three
327Count of Range Sum
328Odd Even Linked List
329Longest Increasing Path in a Matrix
330Patching Array
332Reconstruct Itinerary
333Largest BST Subtree
334Increasing Triplet Subsequence
336Palindrome Pairs
337House Robber III
338Counting Bits
339Nested List Weight Sum
340Longest Substring with At Most K Distinct Characters
341Flatten Nested List Iterator
342Power of Four
343Integer Break
344Reverse String
345Reverse Vowels of a String
346Moving Average from Data Stream
347Top K Frequent Elements
348Design Tic-Tac-Toe
349Intersection of Two Arrays
350Intersection of Two Arrays II
352Data Stream as Disjoint Intervals
353Design Snake Game
354Russian Doll Envelopes
355Design Twitter
359Logger Rate Limiter
362Design Hit Counter
363Max Sum of Rectangle No Larger Than K
366Find Leaves of Binary Tree
367Valid Perfect Square
368Largest Divisible Subset
370Range Addition
371Sum of Two Integers
373Find K Pairs with Smallest Sums
374Guess Number Higher or Lower
376Wiggle Subsequence
377Combination Sum IV
378Kth Smallest Element in a Sorted Matrix
379Design Phone Directory
380Insert Delete GetRandom O(1)
381Insert Delete GetRandom O(1) - Duplicates allowed
383Ransom Note
384Shuffle an Array
386Lexicographical Numbers
387First Unique Character in a String
388Longest Absolute File Path
389Find the Difference
390Elimination Game
392Is Subsequence
393UTF-8 Validation
394Decode String
395Longest Substring with At Least K Repeating Characters
396Rotate Function
397Integer Replacement
399Evaluate Division
402Remove K Digits
403Frog Jump
404Sum of Left Leaves
405Convert a Number to Hexadecimal
406Queue Reconstruction by Height
407Trapping Rain Water II
409Longest Palindrome
410Split Array Largest Sum
412Fizz Buzz
413Arithmetic Slices
414Third Maximum Number
415Add Strings
416Partition Equal Subset Sum
417Pacific Atlantic Water Flow
418Sentence Screen Fitting
419Battleships in a Board
420Strong Password Checker
421Maximum XOR of Two Numbers in an Array
424Longest Repeating Character Replacement
432All O`one Data Structure
433Minimum Genetic Mutation
435Non-overlapping Intervals
436Find Right Interval
437Path Sum III
438Find All Anagrams in a String
441Arranging Coins
442Find All Duplicates in an Array
443String Compression
445Add Two Numbers II
448Find All Numbers Disappeared in an Array
449Serialize and Deserialize BST
450Delete Node in a BST
451Sort Characters By Frequency
452Minimum Number of Arrows to Burst Balloons
453Minimum Moves to Equal Array Elements
4544Sum II
455Assign Cookies
456132 Pattern
458Poor Pigs
459Repeated Substring Pattern
460LFU Cache
461Hamming Distance
462Minimum Moves to Equal Array Elements II
463Island Perimeter
465Optimal Account Balancing
468Validate IP Address
472Concatenated Words
473Matchsticks to Square
474Ones and Zeroes
475Heaters
476Number Complement
480Sliding Window Median
485Max Consecutive Ones
486Predict the Winner
490The Maze
491Non-decreasing Subsequences
493Reverse Pairs
494Target Sum
496Next Greater Element I
498Diagonal Traverse
500Keyboard Row
501Find Mode in Binary Search Tree
502IPO
503Next Greater Element II
505The Maze II
506Relative Ranks
507Perfect Number
508Most Frequent Subtree Sum
512Maximum Alternating Subarray Sum
513Find Bottom Left Tree Value
515Find Largest Value in Each Tree Row
516Longest Palindromic Subsequence
517Super Washing Machines
518Coin Change II
523Continuous Subarray Sum
525Contiguous Array
526Beautiful Arrangement
527Word Abbreviation
528Swapping Nodes in a Linked List
529Minesweeper
530Minimum Absolute Difference in BST
531Lonely Pixel I
532K-diff Pairs in an Array
535Encode and Decode TinyURL
536Construct Binary Tree from String
537Complex Number Multiplication
538Convert BST to Greater Tree
539Minimum Time Difference
540Single Element in a Sorted Array
541Reverse String II
54201 Matrix
543Diameter of Binary Tree
545Boundary of Binary Tree
546Remove Boxes
547Number of Provinces
550Shortest Path to Get Food
553Optimal Division
554Brick Wall
556Next Greater Element III
557Reverse Words in a String III
560Subarray Sum Equals K
561Array Partition
564Find the Closest Palindrome
567Permutation in String
570Managers with at Least 5 Direct Reports
572Subtree of Another Tree
576Out of Boundary Paths
577Employee Bonus
579Find Cumulative Salary of an Employee
581Shortest Unsorted Continuous Subarray
582Kill Process
583Delete Operation for Two Strings
584Find Customer Referee
588Design In-Memory File System
594Longest Harmonious Subsequence
595Big Countries
601Human Traffic of Stadium
602Friend Requests II: Who Has the Most Friends
603Consecutive Available Seats
605Can Place Flowers
606Construct String from Binary Tree
609Find Duplicate File in System
610Triangle Judgement
611Valid Triangle Number
617Merge Two Binary Trees
618Students Report By Geography
620Not Boring Movies
621Task Scheduler
623Add One Row to Tree
626Exchange Seats
628Maximum Product of Three Numbers
630Course Schedule III
631Design Excel Sum Formula
632Smallest Range Covering Elements from K Lists
633Sum of Square Numbers
634Find the Derangement of An Array
636Exclusive Time of Functions
637Average of Levels in Binary Tree
640Solve the Equation
642Design Search Autocomplete System
643Maximum Average Subarray I
645Set Mismatch
646Maximum Length of Pair Chain
647Palindromic Substrings
648Replace Words
649Dota2 Senate
652Find Duplicate Subtrees
653Two Sum IV - Input is a BST
655Print Binary Tree
657Robot Return to Origin
658Find K Closest Elements
661Image Smoother
662Maximum Width of Binary Tree
663Equal Tree Partition
664Strange Printer
665Non-decreasing Array
669Trim a Binary Search Tree
670Maximum Swap
673Number of Longest Increasing Subsequence
674Longest Continuous Increasing Subsequence
675Cut Off Trees for Golf Event
677Map Sum Pairs
678Valid Parenthesis String
680Valid Palindrome II
681Next Closest Time
682Baseball Game
684Redundant Connection
685Redundant Connection II
686Repeated String Match
687Longest Univalue Path
688Knight Probability in Chessboard
689Maximum Sum of 3 Non-Overlapping Subarrays
690Employee Importance
692Top K Frequent Words
694Number of Distinct Islands
695Max Area of Island
696Count Binary Substrings
698Partition to K Equal Sum Subsets
711Number of Distinct Islands II
713Subarray Product Less Than K
714Best Time to Buy and Sell Stock with Transaction Fee
715Range Module
716Max Stack
718Maximum Length of Repeated Subarray
719Find K-th Smallest Pair Distance
720Longest Word in Dictionary
721Accounts Merge
724Find Pivot Index
725Split Linked List in Parts
726Number of Atoms
728Self Dividing Numbers
729My Calendar I
730Count Different Palindromic Subsequences
733Flood Fill
735Asteroid Collision
738Monotone Increasing Digits
739Daily Temperatures
740Delete and Earn
741Cherry Pickup
743Closest Leaf in a Binary Tree
744Network Delay Time
745Find Smallest Letter Greater Than Target
747Min Cost Climbing Stairs
753Open the Lock
755Reach a Number
756Pour Water
758Convert Binary Search Tree to Sorted Doubly Linked List
764N-ary Tree Level Order Traversal
765Serialize and Deserialize N-ary Tree
766Flatten a Multilevel Doubly Linked List
767Prime Number of Set Bits in Binary Representation
768Partition Labels
770Couples Holding Hands
772Construct Quad Tree
778Reorganize String
780Max Chunks To Make Sorted
782Jewels and Stones
783Search in a Binary Search Tree
784Insert into a Binary Search Tree
785Basic Calculator III
787Sliding Puzzle
789Kth Largest Element in a Stream
790Global and Local Inversions
791Split BST
792Binary Search
793Swap Adjacent in LR String
794Swim in Rising Water
795K-th Symbol in Grammar
797Rabbits in Forest
800Letter Case Permutation
801Is Graph Bipartite?
803Cheapest Flights Within K Stops
806Domino and Tromino Tiling
807Custom Sort String
808Number of Matching Subsequences
811Number of Subarrays with Bounded Maximum
812Rotate String
813All Paths From Source to Target
815Champagne Tower
816Design HashSet
817Design HashMap
819Minimum Swaps To Make Sequences Increasing
820Find Eventual Safe States
822Unique Morse Code Words
826Soup Servings
830Largest Triangle Area
831Largest Sum of Averages
832Binary Tree Pruning
833Bus Routes
836Race Car
837Most Common Word
838Design Linked List
843Binary Trees With Factors
853Most Profit Assigning Work
854Making A Large Island
855Count Unique Characters of All Substrings of a Given String
856Consecutive Numbers Sum
860Design Circular Queue
861Flipping an Image
863Sum of Distances in Tree
865Robot Room Cleaner
866Rectangle Overlap
868Push Dominoes
871Keys and Rooms
872Split Array into Fibonacci Sequence
874Backspace String Compare
877Shortest Path Visiting All Nodes
879Maximize Distance to Closest Person
881Loud and Rich
882Peak Index in a Mountain Array
883Car Fleet
886Score of Parentheses
887Minimum Cost to Hire K Workers
889Buddy Strings
892Shortest Subarray with Sum at Least K
893All Nodes Distance K in Binary Tree
896Smallest Subtree with all the Deepest Nodes
898Transpose Matrix
900Reordered Power of 2
902Minimum Number of Refueling Stops
903Implement Rand10() Using Rand7()
907Koko Eating Bananas
908Middle of the Linked List
909Stone Game
910Nth Magical Number
911Profitable Schemes
912Random Pick with Weight
916Decoded String at Index
917Boats to Save People
922Possible Bipartition
923Super Egg Drop
924Fair Candy Swap
925Construct Binary Tree from Preorder and Postorder Traversal
926Find and Replace Pattern
927Sum of Subsequence Widths
930All Possible Full Binary Trees
931Maximum Frequency Stack
932Monotonic Array
933Increasing Order Search Tree
935Orderly Queue
936RLE Iterator
937Online Stock Span
938Numbers At Most N Given Digit Set
939Valid Permutations for DI Sequence
940Fruit Into Baskets
941Sort Array By Parity
943Sum of Subarray Minimums
945Snakes and Ladders
946Smallest Range II
948Sort an Array
951Partition Array into Disjoint Intervals
953Reverse Only Letters
954Maximum Sum Circular Subarray
956Number of Music Playlists
957Minimum Add to Make Parentheses Valid
958Sort Array By Parity II
9593Sum With Multiplicity
962Flip String to Monotone Increasing
965Unique Email Addresses
967Minimum Falling Path Sum
969Number of Recent Calls
971Shortest Bridge
972Knight Dialer
974Reorder Data in Log Files
975Range Sum of BST
978Valid Mountain Array
983Validate Stack Sequences
984Most Stones Removed with Same Row or Column
986Largest Time for Given Digits
988Flip Equivalent Binary Trees
990Verifying an Alien Dictionary
994Prison Cells After N Days
998Check Completeness of a Binary Tree
999Regions Cut By Slashes
1002Maximum Width Ramp
1008Binary Tree Cameras
1009Pancake Sorting
1013Fibonacci Number
1014K Closest Points to Origin
1016Subarray Sums Divisible by K
1019Squares of a Sorted Array
1021Distribute Coins in Binary Tree
1022Unique Paths III
1023Time Based Key-Value Store
1025Minimum Cost For Tickets
1028Interval List Intersections
1029Vertical Order Traversal of a Binary Tree
1032Satisfiability of Equality Equations
1034Subarrays with K Different Integers
1035Cousins in Binary Tree
1036Rotting Oranges
1039Find the Town Judge
1042Minimum Cost to Merge Stones
1044Find Common Characters
1045Check If Word Is Valid After Substitutions
1046Max Consecutive Ones III
1048Clumsy Factorial
1049Minimum Domino Rotations For Equal Row
1050Construct Binary Search Tree from Preorder Traversal
1054Complement of Base 10 Integer
1055Pairs of Songs With Total Durations Divisible by 60
1056Capacity To Ship Packages Within D Days
1059Missing Element in Sorted Array
1060Longest Repeating Substring
1065Binary String With Substrings Representing 1 To N
1068Digit Count in Range
1072Next Greater Node In Linked List
1073Number of Enclaves
1074High Five
1075Index Pairs of a String
1078Remove Outermost Parentheses
1079Sum of Root To Leaf Binary Numbers
1080Camelcase Matching
1082Sum of Digits in the Minimum Number
1083Two Sum Less Than K
1084Find K-Length Substrings With No Repeated Characters
1087Longest Arithmetic Subsequence
1088Number of Days in a Month
1089Remove Vowels from a String
1090Armstrong Number
1091Maximum Average Subtree
1092Maximum Difference Between Node and Ancestor
1093Recover a Tree From Preorder Traversal
1095Two City Scheduling
1097Stream of Characters
1098Largest Unique Number
1099Path With Maximum Minimum Value
1100Connecting Cities With Minimum Cost
1101Parallel Courses
1104Coloring A Border
1105Uncrossed Lines
1107Minimum Swaps to Group All 1’s Together
1108Analyze User Website Visit Pattern
1111Minimum Score Triangulation of Polygon
1112Find Words That Can Be Formed by Characters
1114Binary Search Tree to Greater Sum Tree
1116Maximum Level Sum of a Binary Tree
1117As Far from Land as Possible
1119Robot Bounded In Circle
1120Flower Planting With No Adjacent
1121Partition Array for Maximum Sum
1122Longest Duplicate Substring
1125Design File System
1126Minimum Cost to Connect Sticks
1127Last Stone Weight
1128Remove All Adjacent Duplicates In String
1129Longest String Chain
1135Customers Who Bought All Products
1136Actors and Directors Who Cooperated At Least Three Times
1140Distant Barcodes
1142Minimum Knight Moves
1145Number of Submatrices That Sum to Target
1146Greatest Common Divisor of Strings
1150Two Sum BSTs
1153Product Sales Analysis I
1154Product Sales Analysis II
1155Product Sales Analysis III
1157Insufficient Nodes in Root to Leaf Paths
1159Smallest Subsequence of Distinct Characters
1161Project Employees I
1165Meeting Scheduler
1168Duplicate Zeros
1170Shortest Common Supersequence
1171Shortest Path in Binary Matrix
1172Sales Analysis I
1173Sales Analysis II
1174Sales Analysis III
1176Design A Leaderboard
1178Valid Palindrome III
1179Game Play Analysis I
1184Car Pooling
1185Find in Mountain Array
1191Synonymous Sentences
1194Path In Zigzag Labelled Binary Tree
1196Filling Bookcase Shelves
1205Defanging an IP Address
1206Corporate Flight Bookings
1207Delete Nodes And Return Forest
1212Sequential Digits
1213Handshakes That Don’t Cross
1214Highest Grade For Each Student
1217Relative Sort Array
1220Smallest Sufficient Team
1221Element Appearing More Than 25% In Sorted Array
1222Remove Covered Intervals
1227Number of Equivalent Domino Pairs
1228Minimum Cost Tree From Leaf Values
1229Shortest Path with Alternating Colors
1231Replace Elements with Greatest Element on Right Side
1238Alphabet Board Path
1241Decompress Run-Length Encoded List
1243Sum of Nodes with Even-Valued Grandparent
1249Snapshot Array
1250Longest Common Subsequence
1253Sort the Matrix Diagonally
1254Deepest Leaves Sum
1258Article Views I
1261Swap For Longest Repeated Character Substring
1263Number of Dice Rolls With Target Sum
1267Remove Zero Sum Consecutive Nodes from Linked List
1272Invalid Transactions
1274Number of Days Between Two Dates
1275Validate Binary Tree Nodes
1276Closest Divisors
1277Largest Multiple of Three
1278Product Price at a Given Date
1279Prime Arrangements
1280Diet Plan Performance
1285Balance a Binary Search Tree
1286Constrained Subsequence Sum
1288Maximum Subarray Sum with One Deletion
1295Minimum Garden Perimeter to Collect Enough Apples
1296Kth Ancestor of a Tree Node
1298Reverse Substrings Between Each Pair of Parentheses
1299K-Concatenation Maximum Sum
1300Critical Connections in a Network
1301Reformat Department Table
1303Minimum Moves to Reach Target Score
1304Longest Happy String
1305Number of Visible People in a Queue
1306Minimum Absolute Difference
1308Smallest String With Swaps
1309Sort Items by Groups Respecting Dependencies
1316Fizz Buzz Multithreaded
1319Unique Number of Occurrences
1320Remove All Adjacent Duplicates in String II
1324Where Will the Ball Fall
1327Last Person to Fit in the Bus
1330Longest Arithmetic Subsequence of Given Difference
1331Path with Maximum Gold
1332Count Vowels Permutation
1338Queries Quality and Percentage
1349Check If It Is a Straight Line
1350Remove Sub-Folders from the Filesystem
1351Replace the Substring for Balanced String
1352Maximum Profit in Job Scheduling
1353Find Resultant Array After Removing Anagrams
1355Minimum Deletions to Make Array Beautiful
1356Minimum Number of Moves to Make Palindrome
1364Tuple with Same Product
1366First Unique Number
1370Count Number of Nice Subarrays
1371Minimum Remove to Make Valid Parentheses
1374Leftmost Column with at Least a One
1380Number of Closed Islands
1381Maximum Score Words Formed by Letters
1386Shift 2D Grid
1390Average Selling Price
1392Find the Difference of Two Arrays
1393Maximum Value of K Coins From Piles
1397Search Suggestions System
1400Find Winner on a Tic Tac Toe Game
1402Count Square Submatrices with All Ones
1407Group the People Given the Group Size They Belong To
1411Convert Binary Number in a Linked List to Integer
1414Shortest Path in a Grid with Obstacles Elimination
1415Students and Examinations
1418Fair Distribution of Cookies
1421Find Numbers with Even Number of Digits
1423Maximum Number of Occurrences of a Substring
1426Find N Unique Integers Sum up to Zero
1427All Elements in Two Binary Search Trees
1428Jump Game III
1436Get Watched Videos by Your Friends
1437Minimum Insertion Steps to Make a String Palindrome
1438Find the Team Size
1446Angle Between Hands of a Clock
1447Jump Game IV
1450Delete Leaves With a Given Value
1451Minimum Number of Taps to Open to Water a Garden
1454Remove Palindromic Subsequences
1456Find the City With the Smallest Number of Neighbors at a Threshold Distance
1457Minimum Difficulty of a Job Schedule
1461Count All Valid Pickup and Delivery Options
1462List the Products Ordered in a Period
1463The K Weakest Rows in a Matrix
1464Reduce Array Size to The Half
1465Maximum Product of Splitted Binary Tree
1466Jump Game V
1468Check If N and Its Double Exist
1474Longest ZigZag Path in a Binary Tree
1475Maximum Sum BST in Binary Tree
1476Count Negative Numbers in a Sorted Matrix
1477Product of the Last K Numbers
1478Maximum Number of Events That Can Be Attended
1479Construct Target Array With Multiple Sums
1481Students With Invalid Departments
1482How Many Numbers Are Smaller Than the Current Number
1484Linked List in Binary Tree
1486Find the Distance Value Between Two Arrays
1487Cinema Seat Allocation
1492Time Needed to Inform All Employees
1496Lucky Numbers in a Matrix
1497Design a Stack With Increment Operation
1498Find a Corresponding Node of a Binary Tree in a Clone of That Tree
1499Maximum Performance of a Team
1508Longest Happy Prefix
1509Replace Employee ID With The Unique Identifier
1511Count Number of Teams
1512Design Underground System
1514Minimum Value to Get Positive Step by Step Sum
1515Find the Minimum Number of Fibonacci Numbers Whose Sum Is K
1520Number of Steps to Reduce a Number in Binary Representation to One
1523Capital Gain/Loss
1524String Matching in an Array
1525Queries on a Permutation With Key
1528Kids With the Greatest Number of Candies
1534Minimum Number of Frogs Croaking
1535Build Array Where You Can Find The Maximum Exactly K Comparisons
1536Customers Who Bought Products A and B but Not C
1538Maximum Points You Can Obtain from Cards
1544Count Good Nodes in Binary Tree
1547Destination City
1549Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit
1551NPV Queries
1557Check If a String Contains All Binary Codes of Size K
1559Cherry Pickup II
1566Check If a Word Occurs As a Prefix of Any Word in a Sentence
1567Maximum Number of Vowels in a Substring of Given Length
1568Pseudo-Palindromic Paths in a Binary Tree
1570Final Prices With a Special Discount in a Shop
1574Maximum Product of Two Elements in an Array
1575Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts
1579Active Users
1580Shuffle the Array
1582Design Browser History
1584Average Salary Excluding the Minimum and Maximum Salary
1585The kth Factor of n
1586Longest Subarray of 1’s After Deleting One Element
1603Running Sum of 1d Array
1604Least Number of Unique Integers after K Removals
1605Minimum Number of Days to Make m Bouquets
1612Avoid Flood in The City
1613Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree
1616Minimum Difference Between Largest and Smallest Value in Three Moves
1619Path Crossing
1620Check If Array Pairs Are Divisible by k
1621Number of Subsequences That Satisfy the Given Sum Condition
1623Sales by Day of the Week
1624Clone Binary Tree With Random Pointer
1626Can Make Arithmetic Progression From Sequence
1630Count Odd Numbers in an Interval Range
1632Number of Good Ways to Split a String
1634Clone N-ary Tree
1635Number of Good Pairs
1637String Compression II
1639Friendly Movies Streamed Last Month
1644Maximum Number of Non-Overlapping Substrings
1646Kth Missing Positive Number
1651Shuffle String
1652Minimum Suffix Flips
1654Customer Order Frequency
1656Count Good Triplets
1662Minimum Numbers of Function Calls to Make Target Array
1669Minimum Cost to Cut a Stick
1672Find the Index of the Large Integer
1675Magnetic Force Between Two Balls
1676Minimum Number of Days to Eat N Oranges
1677Matrix Diagonal Sum
1679Shortest Subarray to be Removed to Make Array Sorted
1680Count All Possible Routes
1683Maximum Number of Coins You Can Get
1684Find Latest Group of Size M
1685Stone Game V
1690Maximum Length of Subarray With Positive Product
1692Number of Ways to Reorder Array to Get Same BST
1693Sum of All Odd Length Subarrays
1694Make Sum Divisible by P
1700Minimum Time to Make Rope Colorful
1706Min Cost to Connect All Points
1708Design Parking System
1713Dot Product of Two Sparse Vectors
1715Split a String Into the Max Number of Unique Substrings
1718Warehouse Manager
1723Maximum Number of Achievable Transfer Requests
1724Customer Who Visited but Did Not Make Any Transactions
1725Number of Sets of K Non-Overlapping Line Segments
1730Special Array With X Elements Greater Than or Equal X
1731Even Odd Tree
1736Build Binary Expression Tree From Infix Expression
1737Maximum Nesting Depth of the Parentheses
1741Sort Array by Increasing Frequency
1753Path With Minimum Effort
1757Minimum Jumps to Reach Home
1758Distribute Repeating Integers
1759Find the Missing IDs
1761Count Sorted Vowel Strings
1762Furthest Building You Can Reach
1763All Valid Triplets That Can Represent a Country
1767Design Front Middle Back Queue
1768Design an Expression Tree With Evaluate Function
1770Minimum Deletions to Make Character Frequencies Unique
1771Sell Diminishing-Valued Colored Balls
1772Create Sorted Array through Instructions
1774Add Two Polynomials Represented as Linked Lists
1776Minimum Operations to Reduce X to Zero
1781Check If Two String Arrays are Equivalent
1782Smallest String With A Given Numeric Value
1790Lowest Common Ancestor of a Binary Tree III
1791Richest Customer Wealth
1792Find the Most Competitive Subsequence
1797Goal Parser Interpretation
1798Max Number of K-Sum Pairs
1800Concatenation of Consecutive Binary Numbers
1801Average Time of Process per Machine
1802Number of Students Unable to Eat Lunch
1805Minimum Adjacent Swaps for K Consecutive Ones
1806Count of Matches in Tournament
1807Partitioning Into Minimum Number Of Deci-Binary Numbers
1813Maximum Erasure Value
1814Jump Game VI
1816Lowest Common Ancestor of a Binary Tree IV
1817Calculate Money in Leetcode Bank
1823Determine if String Halves Are Alike
1824Maximum Number of Eaten Apples
1825Find Minimum Time to Finish All Jobs
1827Invalid Tweets
1829Maximum Units on a Truck
1835Decode XORed Permutation
1836Count Ways to Make Array With Product
1842Number of Calls Between Two Persons
1845Largest Submatrix With Rearrangements
1849Maximum Absolute Sum of Any Subarray
1850Minimum Length of String After Deleting Similar Ends
1851Maximum Number of Events That Can Be Attended II
1874Form Array by Concatenating Subarrays of Another Array
1878Check if Array Is Sorted and Rotated
1882The Number of Employees Which Report to Each Employee
1883Find Distance in a Binary Tree
1886Minimum Limit of Balls in a Bag
1887Minimum Degree of a Connected Trio in a Graph
1888Find Nearest Point That Has the Same X or Y Coordinate
1891Count Pairs Of Nodes
1892Find Total Time Spent by Each Employee
1894Merge Strings Alternately
1895Minimum Number of Operations to Move All Balls to Each Box
1908Recyclable and Low Fat Products
1909Buildings With an Ocean View
1915Check if One String Swap Can Make Strings Equal
1917Maximum Average Pass Ratio
1918Maximum Score of a Good Subarray
1919Sort Features by Popularity
1925Count Nice Pairs in an Array
1926Product’s Price for Each Store
1932Grand Slam Titles
1937Maximize the Beauty of the Garden
1938Minimum Operations to Make the Array Increasing
1947Number of Different Subsequences GCDs
1948Rearrange Products Table
1951Find the Winner of the Circular Game
1952Minimum Sideway Jumps
1956Maximum Element After Decreasing and Rearranging
1957Closest Room
1958Ad-Free Sessions
1962Single-Threaded CPU
1964Find Interview Candidates
1966Frequency of the Most Frequent Element
1970Sorting the Sentence
1978Minimum Adjacent Swaps to Reach the Kth Smallest Number
1983Maximum Population Year
1985Maximum Subarray Min-Product
1987Substrings of Size Three with Distinct Characters
1988Minimize Maximum Pair Sum in Array
1993Sum of All Subset XOR Totals
1994Minimum Number of Swaps to Make the Binary String Alternating
1997Next Palindrome Using Same Digits
2000Minimum Speed to Arrive on Time
2001Jump Game VII
2003Distinct Numbers in Each Subarray
2012Process Tasks Using Servers
2015Determine Whether Matrix Can Be Obtained By Rotation
2018Minimum Space Wasted From Packaging
2021Remove All Occurrences of a Substring
2031Egg Drop With 2 Eggs and N Floors
2032Largest Odd Number in String
2038Nearest Exit from Entrance in Maze
2042Maximum Product Difference Between Two Pairs
2047Find a Peak Element II
2048Build Array from Permutation
2051Longest Common Subpath
2054The Number of the Smallest Unoccupied Chair
2056Jump Game VIII
2058Concatenation of Array
2060Merge BSTs to Create Single BST
2065Check for Contradictions in Equations
2072Maximum of Minimum Values in All Subarrays
2075Brightest Position on Street
2080Check if Move is Legal
2084Maximum Number of Weeks for Which You Can Work
2086Count Number of Special Subsequences
2087Confirmation Rate
2094Remove Stones to Minimize the Total
2095Minimum Number of Swaps to Make the String Balanced
2108Minimize the Difference Between Target and Chosen Elements
2116Count Number of Pairs With Absolute Difference K
2117Find Original Array From Doubled Array
2119Minimum Number of Operations to Make Array Continuous
2120First and Last Call On the Same Day
2121Find if Path Exists in Graph
2125GCD Sort of an Array
2132Convert 1D Array Into 2D Array
2134Maximize the Confusion of an Exam
2138Sum of Beauty in the Array
2144Maximum Difference Between Increasing Elements
2147The Score of Students Solving Math Expression
2149Remove Colored Pieces if Both Neighbors are the Same Color
2150Kth Smallest Product of Two Sorted Arrays
2155Find Missing Observations
2161Stock Price Fluctuation
2162Partition Array Into Two Arrays to Minimize Sum Difference
2163Kth Distinct String in an Array
2165Plates Between Candles
2173Number of Valid Words in a Sentence
2175Count Nodes With the Highest Score
2179Most Beautiful Item for Each Query
2182Find the Minimum and Maximum Number of Nodes Between Critical Points
2183Minimum Operations to Convert Number
2188Minimized Maximum of Products Distributed to Any Store
2192Minimum Cost Homecoming of a Robot in a Grid
2197Decode the Slanted Ciphertext
2204Find Subsequence of Length K With the Largest Sum
2205Find Good Days to Rob the Bank
2206Detonate the Maximum Bombs
2207Sequentially Ordinal Rank Tracker
2210Find Target Indices After Sorting Array
2211K Radius Subarray Averages
2216Delete the Middle Node of a Linked List
2217Step-By-Step Directions From a Binary Tree Node to Another
2220Find All Possible Recipes from Given Supplies
2221Check if a Parentheses String Can Be Valid
2227Sum of Subarray Ranges
2231Find First Palindromic String in the Array
2232Adding Spaces to a String
2233Number of Smooth Descent Periods of a Stock
2234Minimum Operations to Make the Array K-Increasing
2236Maximum Twin Sum of a Linked List
2237Longest Palindrome by Concatenating Two Letter Words
2244Number of Laser Beams in a Bank
2249Count the Hidden Sequences
2255Minimum Swaps to Group All 1’s Together II
2256Count Words Obtained After Adding a Letter
2259Minimum Operations to Remove Adjacent Ones in Matrix
2262Solving Questions With Brainpower
2263Maximum Running Time of N Computers
2264Minimum Sum of Four Digit Number After Splitting Digits
2265Partition Array According to Given Pivot
2267Minimum Difference in Sums After Removal of Elements
2271Rearrange Array Elements by Sign
2274Keep Multiplying Found Values by Two
2285Design Bitset
2288Count Operations to Obtain Zero
2294Minimum Time to Complete Trips
2301Count Array Pairs Divisible by K
2302Order Two Columns Independently
2304Cells in a Range on an Excel Sheet
2305Append K Integers With Minimal Sum
2307Replace Non-Coprime Numbers in Array
2309Maximize Number of Subsequences in a String
2313Longest Winning Streak
2324Find Triangular Sum of an Array
2325Number of Ways to Select Buildings
2326Sum of Scores of Built Strings
2330Maximum Total Beauty of the Gardens
2333Count Number of Rectangles Containing Each Point
2334Number of Flowers in Full Bloom
2337Remove Digit From Number to Maximize Result
2339K Divisible Elements Subarrays
2340Total Appeal of A String
2342Minimum Average Difference
2347Count Nodes Equal to Average of Subtree
2348Count Number of Texts
2350Find Closest Number to Zero
2354Minimum Health to Beat Game
2355Maximum Consecutive Floors Without Special Floors
2358Number of Ways to Split Array
2360Substring With Largest Variance
2362Minimum Rounds to Complete All Tasks
2364Longest Path With Different Adjacent Characters
2366Maximum Bags With Full Capacity of Rocks
2368Sum of Total Strength of Wizards
2369Maximum Sum Score of Array
2370Users With Two Purchases Within Seven Days
2372Rearrange Characters to Make Target String
2373Apply Discount to Prices
2374Steps to Make Array Non-decreasing
2376Number of Times a Driver Was a Passenger
2383Add Two Integers
2384Root Equals Sum of Children
2387Partition Array Such That Maximum Difference Is K
2388Replace Elements in an Array
2389Design a Text Editor
2394Count Subarrays With Score Less Than K
2395Longest Binary Subsequence Less Than or Equal to K
2400Minimum Score After Removals on a Tree
2403Count Unreachable Pairs of Nodes in an Undirected Graph
2405Minimum Number of Keypresses
2408Number of People Aware of a Secret
2409Number of Increasing Paths in a Grid
2413Smallest Number in Infinite Set
2414Move Pieces to Obtain a String
2418Minimum Sum of Squared Difference
2421Maximum Number of Pairs in Array
2428Equal Row and Column Pairs
2429Design a Food Rating System
2431Products With Three or More Orders in Two Consecutive Years
2433Best Poker Hand
2435Shortest Impossible Sequence of Rolls
2436Make Array Zero by Subtracting Equal Amounts
2443Check if There is a Valid Partition For The Array
2449Maximum Number of Robots Within Budget
2450Minimum Replacements to Sort the Array
2451Product Sales Analysis IV
2452Product Sales Analysis V
2456Construct Smallest Number From DI String
2457Count Special Integers
2458Find Minimum Time to Finish All Jobs II
2461Amount of Time for Binary Tree to Be Infected
2462Find the K-Sum of an Array
2464Time Needed to Rearrange a Binary String
2468Valid Palindrome IV
2470Removing Stars From a String
2471Minimum Amount of Time to Collect Garbage
2473Max Sum of a Pair With Equal Sum of Digits
2474Minimum Adjacent Swaps to Make a Valid Array
2477Number of Ways to Reach a Position After Exactly k Steps
2481Strictly Palindromic Number
2487Optimal Partition of String
2488Divide Intervals Into Minimum Number of Groups
2490Maximum Number of Books You Can Take
2491Smallest Even Multiple
2497Maximum Matching of Players With Trainers
2498Smallest Subarrays With Maximum Bitwise OR
2499Minimum Money Required Before Transactions
2504Find All Good Indices
2520Using a Robot to Print the Lexicographically Smallest String
2530Minimize Maximum of Array
2534Employees With Deductions
2538Minimum Cost to Make Array Equal
2541Sum of Number and Its Reverse
2552Maximum Sum of Distinct Subarrays With Length K
2553Total Cost to Hire K Workers
2555Design SQL
2558Minimum Number of Operations to Sort a Binary Tree by Level
2561Number of Distinct Averages
2565Merge Operations to Turn Array Into a Palindrome
2566Number of Unequal Triplets in Array
2571Find the Pivot Integer
2572Append Characters to String to Make Subsequence
2573Remove Nodes From Linked List
2576Minimum Penalty for a Shop
2586Longest Square Streak in an Array
2587Design Memory Allocator
2590Maximum Star Sum of a Graph
2603Reward Top K Students
2606Difference Between Ones and Zeros in Row and Column
2613Customers With Strictly Increasing Purchases
2614Maximum Count of Positive Integer and Negative Integer
2617Time Taken to Cross the Door
2621Find Xor-Beauty of Array
2636Maximum Subsequence Score
2646Kth Largest Sum in a Binary Tree
2650Split With Minimum Sum
2658Count the Number of K-Big Indices
2669Find the Substring With Maximum Cost
2670Make K-Subarray Sums Equal
2677Cousins in Binary Tree II
2681Put Marbles in Bags
2684Determine the Winner of a Bowling Game
2692Take Gifts From the Richest Pile
2713Find the Divisibility Array of a String
2720Minimize the Maximum Difference of Pairs
2724Convert an Array Into a 2D Array With Conditions
2732Counter
2734Array Prototype Last
2738Count the Number of K-Free Subsets
2741Function Composition
2743Debounce
2755Extra Characters in a String
2756Buy Two Chocolates
2757Count of Integers
2762Cache With Time Limit
2789Counter II
2794Maximum Number of Moves in a Grid
2796Allow One Function Call
2808Painting the Walls
2809Create Hello World Function
2810Collecting Chocolates
2812Find the Maximum Achievable Number
2813To Be Or Not To Be
2818Maximum Strictly Increasing Cells in a Matrix
2834Relocate Marbles
2868Continuous Subarrays
2871Double a Number Represented as a Linked List
2884Length of the Longest Valid Substring
2921Count Stepping Numbers in Range
2954Maximum Sum of Almost Unique Subarray
2979Maximize the Profit as the Salesman
2995Number of Unique Categories
3018Make String a Subsequence Using Cyclic Increments
3019Furthest Point From Origin
3025Minimum Operations to Form Subsequence With Target Sum
3045Minimum Right Shifts to Sort the Array
3062Create a DataFrame from List
3088Maximal Range That Each Element Is Maximum in It
3094Minimum Number of Operations to Make Array Empty
3095Maximum Number of Alloys
3139Subarrays Distinct Element Sum of Squares II
3150Shortest and Lexicographically Smallest Beautiful String
3182Maximum Linear Stock Score
3183Find the K-or of an Array
3184Maximum Balanced Subsequence Sum
3194Find Words Containing Character
3199Distribute Candies Among Children I
3201Distribute Candies Among Children II
3207Make Three Strings Equal
3208Count Beautiful Substrings II
3210Count Beautiful Substrings I
3211Find Maximum Non-decreasing Array Length
3216Distribute Candies Among Children III