PhantomCodeAI
Features
Mock Interview
Dashboard
Jobs
Pricing
Resources
Help
Features
Mock Interview
Dashboard
Jobs
Pricing
Resources
Help
PhantomCodeAI
Features
Mock Interview
Dashboard
Jobs
Pricing
Resources
Help
Features
Mock Interview
Dashboard
Jobs
Pricing
Resources
Help
Home
LeetCode Problems
Array
Array
Problems
1,673 Array LeetCode problems · Solve with AI-powered hints & step-by-step explanations.
1
Two Sum
Easy
4
Median of Two Sorted Arrays
Hard
11
Container With Most Water
Medium
14
Longest Common Prefix
Easy
15
3Sum
Medium
16
3Sum Closest
Medium
18
4Sum
Medium
26
Remove Duplicates from Sorted Array
Easy
27
Remove Element
Easy
31
Next Permutation
Medium
33
Search in Rotated Sorted Array
Medium
34
Find First and Last Position of Element in Sorted Array
Medium
35
Search Insert Position
Easy
36
Valid Sudoku
Medium
37
Sudoku Solver
Hard
39
Combination Sum
Medium
40
Combination Sum II
Medium
41
First Missing Positive
Hard
42
Trapping Rain Water
Hard
45
Jump Game II
Medium
46
Permutations
Medium
47
Permutations II
Medium
48
Rotate Image
Medium
49
Group Anagrams
Medium
51
N-Queens
Hard
53
Maximum Subarray
Medium
54
Spiral Matrix
Medium
55
Jump Game
Medium
56
Merge Intervals
Medium
57
Insert Interval
Medium
59
Spiral Matrix II
Medium
63
Unique Paths II
Medium
64
Minimum Path Sum
Medium
66
Plus One
Easy
68
Text Justification
Hard
73
Set Matrix Zeroes
Medium
74
Search a 2D Matrix
Medium
75
Sort Colors
Medium
78
Subsets
Medium
79
Word Search
Medium
80
Remove Duplicates from Sorted Array II
Medium
81
Search in Rotated Sorted Array II
Medium
84
Largest Rectangle in Histogram
Hard
85
Maximal Rectangle
Hard
88
Merge Sorted Array
Easy
90
Subsets II
Medium
105
Construct Binary Tree from Preorder and Inorder Traversal
Medium
106
Construct Binary Tree from Inorder and Postorder Traversal
Medium
108
Convert Sorted Array to Binary Search Tree
Easy
118
Pascal's Triangle
Easy
119
Pascal's Triangle II
Easy
120
Triangle
Medium
121
Best Time to Buy and Sell Stock
Easy
122
Best Time to Buy and Sell Stock II
Medium
123
Best Time to Buy and Sell Stock III
Hard
128
Longest Consecutive Sequence
Medium
130
Surrounded Regions
Medium
134
Gas Station
Medium
135
Candy
Hard
136
Single Number
Easy
137
Single Number II
Medium
139
Word Break
Medium
140
Word Break II
Hard
149
Max Points on a Line
Hard
150
Evaluate Reverse Polish Notation
Medium
152
Maximum Product Subarray
Medium
153
Find Minimum in Rotated Sorted Array
Medium
154
Find Minimum in Rotated Sorted Array II
Hard
162
Find Peak Element
Medium
164
Maximum Gap
Medium
167
Two Sum II - Input Array Is Sorted
Medium
169
Majority Element
Easy
174
Dungeon Game
Hard
179
Largest Number
Medium
188
Best Time to Buy and Sell Stock IV
Hard
189
Rotate Array
Medium
198
House Robber
Medium
200
Number of Islands
Medium
204
Count Primes
Medium
209
Minimum Size Subarray Sum
Medium
212
Word Search II
Hard
213
House Robber II
Medium
215
Kth Largest Element in an Array
Medium
216
Combination Sum III
Medium
217
Contains Duplicate
Easy
218
The Skyline Problem
Hard
219
Contains Duplicate II
Easy
220
Contains Duplicate III
Hard
221
Maximal Square
Medium
228
Summary Ranges
Easy
229
Majority Element II
Medium
238
Product of Array Except Self
Medium
239
Sliding Window Maximum
Hard
240
Search a 2D Matrix II
Medium
260
Single Number III
Medium
268
Missing Number
Easy
274
H-Index
Medium
275
H-Index II
Medium
283
Move Zeroes
Easy
284
Peeking Iterator
Medium
287
Find the Duplicate Number
Medium
289
Game of Life
Medium
300
Longest Increasing Subsequence
Medium
303
Range Sum Query - Immutable
Easy
304
Range Sum Query 2D - Immutable
Medium
307
Range Sum Query - Mutable
Medium
309
Best Time to Buy and Sell Stock with Cooldown
Medium
312
Burst Balloons
Hard
313
Super Ugly Number
Medium
315
Count of Smaller Numbers After Self
Hard
318
Maximum Product of Word Lengths
Medium
321
Create Maximum Number
Hard
322
Coin Change
Medium
324
Wiggle Sort II
Medium
327
Count of Range Sum
Hard
329
Longest Increasing Path in a Matrix
Hard
330
Patching Array
Hard
334
Increasing Triplet Subsequence
Medium
335
Self Crossing
Hard
336
Palindrome Pairs
Hard
347
Top K Frequent Elements
Medium
349
Intersection of Two Arrays
Easy
350
Intersection of Two Arrays II
Easy
354
Russian Doll Envelopes
Hard
363
Max Sum of Rectangle No Larger Than K
Hard
368
Largest Divisible Subset
Medium
373
Find K Pairs with Smallest Sums
Medium
376
Wiggle Subsequence
Medium
377
Combination Sum IV
Medium
378
Kth Smallest Element in a Sorted Matrix
Medium
380
Insert Delete GetRandom O(1)
Medium
381
Insert Delete GetRandom O(1) - Duplicates allowed
Hard
384
Shuffle an Array
Medium
391
Perfect Rectangle
Hard
393
UTF-8 Validation
Medium
396
Rotate Function
Medium
399
Evaluate Division
Medium
403
Frog Jump
Hard
406
Queue Reconstruction by Height
Medium
407
Trapping Rain Water II
Hard
410
Split Array Largest Sum
Hard
413
Arithmetic Slices
Medium
414
Third Maximum Number
Easy
416
Partition Equal Subset Sum
Medium
417
Pacific Atlantic Water Flow
Medium
419
Battleships in a Board
Medium
421
Maximum XOR of Two Numbers in an Array
Medium
427
Construct Quad Tree
Medium
435
Non-overlapping Intervals
Medium
442
Find All Duplicates in an Array
Medium
446
Arithmetic Slices II - Subsequence
Hard
447
Number of Boomerangs
Medium
448
Find All Numbers Disappeared in an Array
Easy
452
Minimum Number of Arrows to Burst Balloons
Medium
453
Minimum Moves to Equal Array Elements
Medium
454
4Sum II
Medium
455
Assign Cookies
Easy
456
132 Pattern
Medium
457
Circular Array Loop
Medium
462
Minimum Moves to Equal Array Elements II
Medium
463
Island Perimeter
Easy
472
Concatenated Words
Hard
473
Matchsticks to Square
Medium
474
Ones and Zeroes
Medium
475
Heaters
Medium
477
Total Hamming Distance
Medium
480
Sliding Window Median
Hard
485
Max Consecutive Ones
Easy
486
Predict the Winner
Medium
491
Non-decreasing Subsequences
Medium
493
Reverse Pairs
Hard
494
Target Sum
Medium
495
Teemo Attacking
Easy
496
Next Greater Element I
Easy
497
Random Point in Non-overlapping Rectangles
Medium
498
Diagonal Traverse
Medium
500
Keyboard Row
Easy
502
IPO
Hard
503
Next Greater Element II
Medium
506
Relative Ranks
Easy
517
Super Washing Machines
Hard
518
Coin Change II
Medium
522
Longest Uncommon Subsequence II
Medium
523
Continuous Subarray Sum
Medium
524
Longest Word in Dictionary through Deleting
Medium
525
Contiguous Array
Medium
526
Beautiful Arrangement
Medium
528
Random Pick with Weight
Medium
529
Minesweeper
Medium
532
K-diff Pairs in an Array
Medium
539
Minimum Time Difference
Medium
540
Single Element in a Sorted Array
Medium
542
01 Matrix
Medium
546
Remove Boxes
Hard
553
Optimal Division
Medium
554
Brick Wall
Medium
560
Subarray Sum Equals K
Medium
561
Array Partition
Easy
565
Array Nesting
Medium
566
Reshape the Matrix
Easy
575
Distribute Candies
Easy
581
Shortest Unsorted Continuous Subarray
Medium
587
Erect the Fence
Hard
594
Longest Harmonious Subsequence
Easy
598
Range Addition II
Easy
599
Minimum Index Sum of Two Lists
Easy
605
Can Place Flowers
Easy
609
Find Duplicate File in System
Medium
611
Valid Triangle Number
Medium
621
Task Scheduler
Medium
622
Design Circular Queue
Medium
624
Maximum Distance in Arrays
Medium
628
Maximum Product of Three Numbers
Easy
630
Course Schedule III
Hard
632
Smallest Range Covering Elements from K Lists
Hard
636
Exclusive Time of Functions
Medium
638
Shopping Offers
Medium
641
Design Circular Deque
Medium
643
Maximum Average Subarray I
Easy
645
Set Mismatch
Easy
646
Maximum Length of Pair Chain
Medium
648
Replace Words
Medium
654
Maximum Binary Tree
Medium
658
Find K Closest Elements
Medium
659
Split Array into Consecutive Subsequences
Medium
661
Image Smoother
Easy
665
Non-decreasing Array
Medium
667
Beautiful Arrangement II
Medium
673
Number of Longest Increasing Subsequence
Medium
674
Longest Continuous Increasing Subsequence
Easy
675
Cut Off Trees for Golf Event
Hard
679
24 Game
Hard
682
Baseball Game
Easy
689
Maximum Sum of 3 Non-Overlapping Subarrays
Hard
690
Employee Importance
Medium
691
Stickers to Spell Word
Hard
692
Top K Frequent Words
Medium
695
Max Area of Island
Medium
697
Degree of an Array
Easy
698
Partition to K Equal Sum Subsets
Medium
699
Falling Squares
Hard
704
Binary Search
Easy
705
Design HashSet
Easy
706
Design HashMap
Easy
710
Random Pick with Blacklist
Hard
713
Subarray Product Less Than K
Medium
714
Best Time to Buy and Sell Stock with Transaction Fee
Medium
717
1-bit and 2-bit Characters
Easy
718
Maximum Length of Repeated Subarray
Medium
719
Find K-th Smallest Pair Distance
Hard
720
Longest Word in Dictionary
Medium
721
Accounts Merge
Medium
722
Remove Comments
Medium
724
Find Pivot Index
Easy
729
My Calendar I
Medium
731
My Calendar II
Medium
733
Flood Fill
Easy
735
Asteroid Collision
Medium
739
Daily Temperatures
Medium
740
Delete and Earn
Medium
741
Cherry Pickup
Hard
744
Find Smallest Letter Greater Than Target
Easy
745
Prefix and Suffix Search
Hard
746
Min Cost Climbing Stairs
Easy
747
Largest Number At Least Twice of Others
Easy
748
Shortest Completing Word
Easy
749
Contain Virus
Hard
752
Open the Lock
Medium
757
Set Intersection Size At Least Two
Hard
764
Largest Plus Sign
Medium
766
Toeplitz Matrix
Easy
768
Max Chunks To Make Sorted II
Hard
769
Max Chunks To Make Sorted
Medium
773
Sliding Puzzle
Hard
775
Global and Local Inversions
Medium
778
Swim in Rising Water
Hard
781
Rabbits in Forest
Medium
782
Transform to Chessboard
Hard
786
K-th Smallest Prime Fraction
Medium
789
Escape The Ghosts
Medium
792
Number of Matching Subsequences
Medium
794
Valid Tic-Tac-Toe State
Medium
795
Number of Subarrays with Bounded Maximum
Medium
798
Smallest Rotation with Highest Score
Hard
801
Minimum Swaps To Make Sequences Increasing
Hard
803
Bricks Falling When Hit
Hard
804
Unique Morse Code Words
Easy
805
Split Array With Same Average
Hard
806
Number of Lines To Write String
Easy
807
Max Increase to Keep City Skyline
Medium
809
Expressive Words
Medium
810
Chalkboard XOR Game
Hard
811
Subdomain Visit Count
Medium
812
Largest Triangle Area
Easy
813
Largest Sum of Averages
Medium
815
Bus Routes
Hard
817
Linked List Components
Medium
819
Most Common Word
Easy
820
Short Encoding of Words
Medium
821
Shortest Distance to a Character
Easy
822
Card Flipping Game
Medium
823
Binary Trees With Factors
Medium
825
Friends Of Appropriate Ages
Medium
826
Most Profit Assigning Work
Medium
827
Making A Large Island
Hard
832
Flipping an Image
Easy
833
Find And Replace in String
Medium
835
Image Overlap
Medium
839
Similar String Groups
Hard
840
Magic Squares In Grid
Medium
843
Guess the Word
Hard
845
Longest Mountain in Array
Medium
846
Hand of Straights
Medium
848
Shifting Letters
Medium
849
Maximize Distance to Closest Person
Medium
850
Rectangle Area II
Hard
851
Loud and Rich
Medium
852
Peak Index in a Mountain Array
Medium
853
Car Fleet
Medium
857
Minimum Cost to Hire K Workers
Hard
860
Lemonade Change
Easy
861
Score After Flipping Matrix
Medium
862
Shortest Subarray with Sum at Least K
Hard
864
Shortest Path to Get All Keys
Hard
867
Transpose Matrix
Easy
870
Advantage Shuffle
Medium
871
Minimum Number of Refueling Stops
Hard
873
Length of Longest Fibonacci Subsequence
Medium
874
Walking Robot Simulation
Medium
875
Koko Eating Bananas
Medium
877
Stone Game
Medium
879
Profitable Schemes
Hard
881
Boats to Save People
Medium
883
Projection Area of 3D Shapes
Easy
885
Spiral Matrix III
Medium
888
Fair Candy Swap
Easy
889
Construct Binary Tree from Preorder and Postorder Traversal
Medium
890
Find and Replace Pattern
Medium
891
Sum of Subsequence Widths
Hard
892
Surface Area of 3D Shapes
Easy
893
Groups of Special-Equivalent Strings
Medium
896
Monotonic Array
Easy
898
Bitwise ORs of Subarrays
Medium
900
RLE Iterator
Medium
902
Numbers At Most N Given Digit Set
Hard
904
Fruit Into Baskets
Medium
905
Sort Array By Parity
Easy
907
Sum of Subarray Minimums
Medium
908
Smallest Range I
Easy
909
Snakes and Ladders
Medium
910
Smallest Range II
Medium
911
Online Election
Medium
912
Sort an Array
Medium
914
X of a Kind in a Deck of Cards
Easy
915
Partition Array into Disjoint Intervals
Medium
916
Word Subsets
Medium
918
Maximum Sum Circular Subarray
Medium
922
Sort Array By Parity II
Easy
923
3Sum With Multiplicity
Medium
924
Minimize Malware Spread
Hard
927
Three Equal Parts
Hard
928
Minimize Malware Spread II
Hard
929
Unique Email Addresses
Easy
930
Binary Subarrays With Sum
Medium
931
Minimum Falling Path Sum
Medium
932
Beautiful Array
Medium
934
Shortest Bridge
Medium
937
Reorder Data in Log Files
Medium
939
Minimum Area Rectangle
Medium
941
Valid Mountain Array
Easy
942
DI String Match
Easy
943
Find the Shortest Superstring
Hard
944
Delete Columns to Make Sorted
Easy
945
Minimum Increment to Make Array Unique
Medium
946
Validate Stack Sequences
Medium
948
Bag of Tokens
Medium
949
Largest Time for Given Digits
Medium
950
Reveal Cards In Increasing Order
Medium
952
Largest Component Size by Common Factor
Hard
953
Verifying an Alien Dictionary
Easy
954
Array of Doubled Pairs
Medium
955
Delete Columns to Make Sorted II
Medium
956
Tallest Billboard
Hard
957
Prison Cells After N Days
Medium
959
Regions Cut By Slashes
Medium
960
Delete Columns to Make Sorted III
Hard
961
N-Repeated Element in Size 2N Array
Easy
962
Maximum Width Ramp
Medium
963
Minimum Area Rectangle II
Medium
966
Vowel Spellchecker
Medium
969
Pancake Sorting
Medium
973
K Closest Points to Origin
Medium
974
Subarray Sums Divisible by K
Medium
975
Odd Even Jump
Hard
976
Largest Perimeter Triangle
Easy
977
Squares of a Sorted Array
Easy
978
Longest Turbulent Subarray
Medium
980
Unique Paths III
Hard
982
Triples with Bitwise AND Equal To Zero
Hard
983
Minimum Cost For Tickets
Medium
985
Sum of Even Numbers After Queries
Medium
986
Interval List Intersections
Medium
989
Add to Array-Form of Integer
Easy
990
Satisfiability of Equality Equations
Medium
992
Subarrays with K Different Integers
Hard
994
Rotting Oranges
Medium
995
Minimum Number of K Consecutive Bit Flips
Hard
996
Number of Squareful Arrays
Hard
997
Find the Town Judge
Easy
999
Available Captures for Rook
Easy
1000
Minimum Cost to Merge Stones
Hard
1001
Grid Illumination
Hard
1002
Find Common Characters
Easy
1004
Max Consecutive Ones III
Medium
1005
Maximize Sum Of Array After K Negations
Easy
1007
Minimum Domino Rotations For Equal Row
Medium
1008
Construct Binary Search Tree from Preorder Traversal
Medium
1010
Pairs of Songs With Total Durations Divisible by 60
Medium
1011
Capacity To Ship Packages Within D Days
Medium
1013
Partition Array Into Three Parts With Equal Sum
Easy
1014
Best Sightseeing Pair
Medium
1018
Binary Prefix Divisible By 5
Easy
1019
Next Greater Node In Linked List
Medium
1020
Number of Enclaves
Medium
1023
Camelcase Matching
Medium
1024
Video Stitching
Medium
1027
Longest Arithmetic Subsequence
Medium
1029
Two City Scheduling
Medium
1030
Matrix Cells in Distance Order
Easy
1031
Maximum Sum of Two Non-Overlapping Subarrays
Medium
1032
Stream of Characters
Hard
1034
Coloring A Border
Medium
1035
Uncrossed Lines
Medium
1036
Escape a Large Maze
Hard
1037
Valid Boomerang
Easy
1039
Minimum Score Triangulation of Polygon
Medium
1040
Moving Stones Until Consecutive II
Medium
1043
Partition Array for Maximum Sum
Medium
1046
Last Stone Weight
Easy
1048
Longest String Chain
Medium
1049
Last Stone Weight II
Medium
1051
Height Checker
Easy
1052
Grumpy Bookstore Owner
Medium
1053
Previous Permutation With One Swap
Medium
1054
Distant Barcodes
Medium
1072
Flip Columns For Maximum Number of Equal Rows
Medium
1073
Adding Two Negabinary Numbers
Medium
1074
Number of Submatrices That Sum to Target
Hard
1089
Duplicate Zeros
Easy
1090
Largest Values From Labels
Medium
1091
Shortest Path in Binary Matrix
Medium
1093
Statistics from a Large Sample
Medium
1094
Car Pooling
Medium
1095
Find in Mountain Array
Hard
1105
Filling Bookcase Shelves
Medium
1109
Corporate Flight Bookings
Medium
1110
Delete Nodes And Return Forest
Medium
1122
Relative Sort Array
Easy
1124
Longest Well-Performing Interval
Medium
1125
Smallest Sufficient Team
Hard
1128
Number of Equivalent Domino Pairs
Easy
1130
Minimum Cost Tree From Leaf Values
Medium
1131
Maximum of Absolute Value Expression
Medium
1139
Largest 1-Bordered Square
Medium
1140
Stone Game II
Medium
1144
Decrease Elements To Make Array Zigzag
Medium
1146
Snapshot Array
Medium
1157
Online Majority Element In Subarray
Hard
1160
Find Words That Can Be Formed by Characters
Easy
1162
As Far from Land as Possible
Medium
1169
Invalid Transactions
Medium
1170
Compare Strings by Frequency of the Smallest Character
Medium
1177
Can Make Palindrome from Substring
Medium
1178
Number of Valid Words for Each Puzzle
Hard
1184
Distance Between Bus Stops
Easy
1186
Maximum Subarray Sum with One Deletion
Medium
1187
Make Array Strictly Increasing
Hard
1191
K-Concatenation Maximum Sum
Medium
1200
Minimum Absolute Difference
Easy
1202
Smallest String With Swaps
Medium
1207
Unique Number of Occurrences
Easy
1210
Minimum Moves to Reach Target with Rotations
Hard
1217
Minimum Cost to Move Chips to The Same Position
Easy
1218
Longest Arithmetic Subsequence of Given Difference
Medium
1219
Path with Maximum Gold
Medium
1222
Queens That Can Attack the King
Medium
1223
Dice Roll Simulation
Hard
1224
Maximum Equal Frequency
Hard
1232
Check If It Is a Straight Line
Easy
1233
Remove Sub-Folders from the Filesystem
Medium
1235
Maximum Profit in Job Scheduling
Hard
1239
Maximum Length of a Concatenated String with Unique Characters
Medium
1248
Count Number of Nice Subarrays
Medium
1250
Check If It Is a Good Array
Hard
1252
Cells with Odd Values in a Matrix
Easy
1253
Reconstruct a 2-Row Binary Matrix
Medium
1254
Number of Closed Islands
Medium
1255
Maximum Score Words Formed by Letters
Hard
1260
Shift 2D Grid
Easy
1262
Greatest Sum Divisible by Three
Medium
1263
Minimum Moves to Move a Box to Their Target Location
Hard
1266
Minimum Time Visiting All Points
Easy
1267
Count Servers that Communicate
Medium
1268
Search Suggestions System
Medium
1275
Find Winner on a Tic Tac Toe Game
Easy
1277
Count Square Submatrices with All Ones
Medium
1282
Group the People Given the Group Size They Belong To
Medium
1283
Find the Smallest Divisor Given a Threshold
Medium
1284
Minimum Number of Flips to Convert Binary Matrix to Zero Matrix
Hard
1287
Element Appearing More Than 25% In Sorted Array
Easy
1288
Remove Covered Intervals
Medium
1289
Minimum Falling Path Sum II
Hard
1292
Maximum Side Length of a Square with Sum Less than or Equal to Threshold
Medium
1293
Shortest Path in a Grid with Obstacles Elimination
Hard
1295
Find Numbers with Even Number of Digits
Easy
1296
Divide Array in Sets of K Consecutive Numbers
Medium
1298
Maximum Candies You Can Get from Boxes
Hard
1299
Replace Elements with Greatest Element on Right Side
Easy
1300
Sum of Mutated Array Closest to Target
Medium
1301
Number of Paths with Max Score
Hard
1304
Find N Unique Integers Sum up to Zero
Easy
1306
Jump Game III
Medium
1307
Verbal Arithmetic Puzzle
Hard
1310
XOR Queries of a Subarray
Medium
1311
Get Watched Videos by Your Friends
Medium
1313
Decompress Run-Length Encoded List
Easy
1314
Matrix Block Sum
Medium
1324
Print Words Vertically
Medium
1326
Minimum Number of Taps to Open to Water a Garden
Hard
1329
Sort the Matrix Diagonally
Medium
1330
Reverse Subarray To Maximize Array Value
Hard
1331
Rank Transform of an Array
Easy
1333
Filter Restaurants by Vegan-Friendly, Price and Distance
Medium
1335
Minimum Difficulty of a Job Schedule
Hard
1337
The K Weakest Rows in a Matrix
Easy
1338
Reduce Array Size to The Half
Medium
1340
Jump Game V
Hard
1343
Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold
Medium
1345
Jump Game IV
Hard
1346
Check If N and Its Double Exist
Easy
1349
Maximum Students Taking Exam
Hard
1351
Count Negative Numbers in a Sorted Matrix
Easy
1352
Product of the Last K Numbers
Medium
1353
Maximum Number of Events That Can Be Attended
Medium
1354
Construct Target Array With Multiple Sums
Hard
1356
Sort Integers by The Number of 1 Bits
Easy
1357
Apply Discount Every n Orders
Medium
1363
Largest Multiple of Three
Hard
1365
How Many Numbers Are Smaller Than the Current Number
Easy
1366
Rank Teams by Votes
Medium
1368
Minimum Cost to Make at Least One Valid Path in a Grid
Hard
1375
Number of Times Binary String Is Prefix-Aligned
Medium
1380
Lucky Numbers in a Matrix
Easy
1381
Design a Stack With Increment Operation
Medium
1383
Maximum Performance of a Team
Hard
1385
Find the Distance Value Between Two Arrays
Easy
1386
Cinema Seat Allocation
Medium
1388
Pizza With 3n Slices
Hard
1389
Create Target Array in the Given Order
Easy
1390
Four Divisors
Medium
1391
Check if There is a Valid Path in a Grid
Medium
1394
Find Lucky Integer in an Array
Easy
1395
Count Number of Teams
Medium
1402
Reducing Dishes
Hard
1403
Minimum Subsequence in Non-Increasing Order
Easy
1406
Stone Game III
Hard
1408
String Matching in an Array
Easy
1409
Queries on a Permutation With Key
Medium
1413
Minimum Value to Get Positive Step by Step Sum
Easy
1418
Display Table of Food Orders in a Restaurant
Medium
1423
Maximum Points You Can Obtain from Cards
Medium
1424
Diagonal Traverse II
Medium
1425
Constrained Subsequence Sum
Hard
1431
Kids With the Greatest Number of Candies
Easy
1434
Number of Ways to Wear Different Hats to Each Other
Hard
1436
Destination City
Easy
1437
Check If All 1's Are at Least Length K Places Away
Easy
1438
Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit
Medium
1439
Find the Kth Smallest Sum of a Matrix With Sorted Rows
Hard
1441
Build an Array With Stack Operations
Medium
1442
Count Triplets That Can Form Two Arrays of Equal XOR
Medium
1444
Number of Ways of Cutting a Pizza
Hard
1449
Form Largest Integer With Digits That Add up to Target
Hard
1450
Number of Students Doing Homework at a Given Time
Easy
1452
People Whose List of Favorite Companies Is Not a Subset of Another List
Medium
1453
Maximum Number of Darts Inside of a Circular Dartboard
Hard
1458
Max Dot Product of Two Subsequences
Hard
1460
Make Two Arrays Equal by Reversing Subarrays
Easy
1463
Cherry Pickup II
Hard
1464
Maximum Product of Two Elements in an Array
Easy
1465
Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts
Medium
1467
Probability of a Two Boxes Having The Same Number of Distinct Balls
Hard
1470
Shuffle the Array
Easy
1471
The k Strongest Values in an Array
Medium
1472
Design Browser History
Medium
1473
Paint House III
Hard
1475
Final Prices With a Special Discount in a Shop
Easy
1476
Subrectangle Queries
Medium
1477
Find Two Non-overlapping Sub-arrays Each With Target Sum
Medium
1478
Allocate Mailboxes
Hard
1480
Running Sum of 1d Array
Easy
1481
Least Number of Unique Integers after K Removals
Medium
1482
Minimum Number of Days to Make m Bouquets
Medium
1487
Making File Names Unique
Medium
1488
Avoid Flood in The City
Medium
1491
Average Salary Excluding the Minimum and Maximum Salary
Easy
1493
Longest Subarray of 1's After Deleting One Element
Medium
1497
Check If Array Pairs Are Divisible by k
Medium
1498
Number of Subsequences That Satisfy the Given Sum Condition
Medium
1499
Max Value of Equation
Hard
1502
Can Make Arithmetic Progression From Sequence
Easy
1503
Last Moment Before All Ants Fall Out of a Plank
Medium
1504
Count Submatrices With All Ones
Medium
1508
Range Sum of Sorted Subarray Sums
Medium
1509
Minimum Difference Between Largest and Smallest Value in Three Moves
Medium
1512
Number of Good Pairs
Easy
1514
Path with Maximum Probability
Medium
1515
Best Position for a Service Centre
Hard
1521
Find a Value of a Mysterious Function Closest to Target
Hard
1524
Number of Sub-arrays With Odd Sum
Medium
1526
Minimum Number of Increments on Subarrays to Form a Target Array
Hard
1528
Shuffle String
Easy
1534
Count Good Triplets
Easy
1535
Find the Winner of an Array Game
Medium
1536
Minimum Swaps to Arrange a Binary Grid
Medium
1537
Get the Maximum Score
Hard
1539
Kth Missing Positive Number
Easy
1546
Maximum Number of Non-Overlapping Subarrays With Sum Equals Target
Medium
1547
Minimum Cost to Cut a Stick
Hard
1550
Three Consecutive Odds
Easy
1552
Magnetic Force Between Two Balls
Medium
1558
Minimum Numbers of Function Calls to Make Target Array
Medium
1559
Detect Cycles in 2D Grid
Medium
1560
Most Visited Sector in a Circular Track
Easy
1561
Maximum Number of Coins You Can Get
Medium
1562
Find Latest Group of Size M
Medium
1563
Stone Game V
Hard
1566
Detect Pattern of Length M Repeated K or More Times
Easy
1567
Maximum Length of Subarray With Positive Product
Medium
1568
Minimum Number of Days to Disconnect Island
Hard
1569
Number of Ways to Reorder Array to Get Same BST
Hard
1572
Matrix Diagonal Sum
Easy
1574
Shortest Subarray to be Removed to Make Array Sorted
Medium
1575
Count All Possible Routes
Hard
1577
Number of Ways Where Square of Number Is Equal to Product of Two Numbers
Medium
1578
Minimum Time to Make Rope Colorful
Medium
1582
Special Positions in a Binary Matrix
Easy
1583
Count Unhappy Friends
Medium
1584
Min Cost to Connect All Points
Medium
1588
Sum of All Odd Length Subarrays
Easy
1589
Maximum Sum Obtained of Any Permutation
Medium
1590
Make Sum Divisible by P
Medium
1591
Strange Printer II
Hard
1594
Maximum Non Negative Product in a Matrix
Medium
1595
Minimum Cost to Connect Two Groups of Points
Hard
1598
Crawler Log Folder
Easy
1599
Maximum Profit of Operating a Centennial Wheel
Medium
1601
Maximum Number of Achievable Transfer Requests
Hard
1604
Alert Using Same Key-Card Three or More Times in a One Hour Period
Medium
1605
Find Valid Matrix Given Row and Column Sums
Medium
1606
Find Servers That Handled Most Number of Requests
Hard
1608
Special Array With X Elements Greater Than or Equal X
Easy
1610
Maximum Number of Visible Points
Hard
1619
Mean of Array After Removing Some Elements
Easy
1620
Coordinate With Maximum Network Quality
Medium
1626
Best Team With No Conflicts
Medium
1627
Graph Connectivity With Threshold
Hard
1629
Slowest Key
Easy
1630
Arithmetic Subarrays
Medium
1631
Path With Minimum Effort
Medium
1632
Rank Transform of a Matrix
Hard
1636
Sort Array by Increasing Frequency
Easy
1637
Widest Vertical Area Between Two Points Containing No Points
Easy
1639
Number of Ways to Form a Target String Given a Dictionary
Hard
1640
Check Array Formation Through Concatenation
Easy
1642
Furthest Building You Can Reach
Medium
1643
Kth Smallest Instructions
Hard
1646
Get Maximum in Generated Array
Easy
1648
Sell Diminishing-Valued Colored Balls
Medium
1649
Create Sorted Array through Instructions
Hard
1652
Defuse the Bomb
Easy
1654
Minimum Jumps to Reach Home
Medium
1655
Distribute Repeating Integers
Hard
1656
Design an Ordered Stream
Easy
1658
Minimum Operations to Reduce X to Zero
Medium
1662
Check If Two String Arrays are Equivalent
Easy
1664
Ways to Make a Fair Array
Medium
1665
Minimum Initial Energy to Finish Tasks
Hard
1670
Design Front Middle Back Queue
Medium
1671
Minimum Number of Removals to Make Mountain Array
Hard
1672
Richest Customer Wealth
Easy
1673
Find the Most Competitive Subsequence
Medium
1674
Minimum Moves to Make Array Complementary
Medium
1675
Minimize Deviation in Array
Hard
1679
Max Number of K-Sum Pairs
Medium
1681
Minimum Incompatibility
Hard
1684
Count the Number of Consistent Strings
Easy
1685
Sum of Absolute Differences in a Sorted Array
Medium
1686
Stone Game VI
Medium
1687
Delivering Boxes from Storage to Ports
Hard
1690
Stone Game VII
Medium
1691
Maximum Height by Stacking Cuboids
Hard
1695
Maximum Erasure Value
Medium
1696
Jump Game VI
Medium
1697
Checking Existence of Edge Length Limited Paths
Hard
1700
Number of Students Unable to Eat Lunch
Easy
1701
Average Waiting Time
Medium
1703
Minimum Adjacent Swaps for K Consecutive Ones
Hard
1705
Maximum Number of Eaten Apples
Medium
1706
Where Will the Ball Fall
Medium
1707
Maximum XOR With an Element From Array
Hard
1710
Maximum Units on a Truck
Easy
1711
Count Good Meals
Medium
1712
Ways to Split Array Into Three Subarrays
Medium
1713
Minimum Operations to Make a Subsequence
Hard
1718
Construct the Lexicographically Largest Valid Sequence
Medium
1720
Decode XORed Array
Easy
1722
Minimize Hamming Distance After Swap Operations
Medium
1723
Find Minimum Time to Finish All Jobs
Hard
1725
Number Of Rectangles That Can Form The Largest Square
Easy
1726
Tuple with Same Product
Medium
1727
Largest Submatrix With Rearrangements
Medium
1728
Cat and Mouse II
Hard
1732
Find the Highest Altitude
Easy
1733
Minimum Number of People to Teach
Medium
1734
Decode XORed Permutation
Medium
1735
Count Ways to Make Array With Product
Hard
1738
Find Kth Largest XOR Coordinate Value
Medium
1743
Restore the Array From Adjacent Pairs
Medium
1744
Can You Eat Your Favorite Candy on Your Favorite Day?
Medium
1748
Sum of Unique Elements
Easy
1749
Maximum Absolute Sum of Any Subarray
Medium
1751
Maximum Number of Events That Can Be Attended II
Hard
1752
Check if Array Is Sorted and Rotated
Easy
1755
Closest Subsequence Sum
Hard
1760
Minimum Limit of Balls in a Bag
Medium
1764
Form Array by Concatenating Subarrays of Another Array
Medium
1765
Map of Highest Peak
Medium
1766
Tree of Coprimes
Hard
1769
Minimum Number of Operations to Move All Balls to Each Box
Medium
1770
Maximum Score from Performing Multiplication Operations
Hard
1773
Count Items Matching a Rule
Easy
1774
Closest Dessert Cost
Medium
1775
Equal Sum Arrays With Minimum Number of Operations
Medium
1776
Car Fleet II
Hard
1779
Find Nearest Point That Has the Same X or Y Coordinate
Easy
1782
Count Pairs Of Nodes
Hard
1785
Minimum Elements to Add to Form a Given Sum
Medium
1787
Make the XOR of All Segments Equal to Zero
Hard
1792
Maximum Average Pass Ratio
Medium
1793
Maximum Score of a Good Subarray
Hard
1798
Maximum Number of Consecutive Values You Can Make
Medium
1799
Maximize Score After N Operations
Hard
1800
Maximum Ascending Subarray Sum
Easy
1801
Number of Orders in the Backlog
Medium
1803
Count Pairs With XOR in a Range
Hard
1806
Minimum Number of Operations to Reinitialize a Permutation
Medium
1807
Evaluate the Bracket Pairs of a String
Medium
1813
Sentence Similarity III
Medium
1814
Count Nice Pairs in an Array
Medium
1815
Maximum Number of Groups Getting Fresh Donuts
Hard
1816
Truncate Sentence
Easy
1817
Finding the Users Active Minutes
Medium
1818
Minimum Absolute Sum Difference
Medium
1819
Number of Different Subsequences GCDs
Hard
1822
Sign of the Product of an Array
Easy
1823
Find the Winner of the Circular Game
Medium
1824
Minimum Sideway Jumps
Medium
1827
Minimum Operations to Make the Array Increasing
Easy
1828
Queries on Number of Points Inside a Circle
Medium
1829
Maximum XOR for Each Query
Medium
1833
Maximum Ice Cream Bars
Medium
1834
Single-Threaded CPU
Medium
1835
Find XOR Sum of All Pairs Bitwise AND
Hard
1838
Frequency of the Most Frequent Element
Medium
1840
Maximum Building Height
Hard
1846
Maximum Element After Decreasing and Rearranging
Medium
1847
Closest Room
Hard
1848
Minimum Distance to the Target Element
Easy
1851
Minimum Interval to Include Each Query
Hard
1854
Maximum Population Year
Easy
1855
Maximum Distance Between a Pair of Values
Medium
1856
Maximum Subarray Min-Product
Medium
1861
Rotating the Box
Medium
1862
Sum of Floored Pairs
Hard
1863
Sum of All Subset XOR Totals
Easy
1865
Finding Pairs With a Certain Sum
Medium
1870
Minimum Speed to Arrive on Time
Medium
1872
Stone Game VIII
Hard
1877
Minimize Maximum Pair Sum in Array
Medium
1878
Get Biggest Three Rhombus Sums in a Grid
Medium
1879
Minimum XOR Sum of Two Arrays
Hard
1882
Process Tasks Using Servers
Medium
1883
Minimum Skips to Arrive at Meeting On Time
Hard
1886
Determine Whether Matrix Can Be Obtained By Rotation
Easy
1887
Reduction Operations to Make the Array Elements Equal
Medium
1889
Minimum Space Wasted From Packaging
Hard
1893
Check if All the Integers in a Range Are Covered
Easy
1894
Find the Student that Will Replace the Chalk
Medium
1895
Largest Magic Square
Medium
1898
Maximum Number of Removable Characters
Medium
1899
Merge Triplets to Form Target Triplet
Medium
1901
Find a Peak Element II
Medium
1905
Count Sub Islands
Medium
1906
Minimum Absolute Difference Queries
Medium
1909
Remove One Element to Make the Array Strictly Increasing
Easy
1911
Maximum Alternating Subsequence Sum
Medium
1912
Design Movie Rental System
Hard
1913
Maximum Product Difference Between Two Pairs
Easy
1914
Cyclically Rotating a Grid
Medium
1920
Build Array from Permutation
Easy
1921
Eliminate Maximum Number of Monsters
Medium
1923
Longest Common Subpath
Hard
1926
Nearest Exit from Entrance in Maze
Medium
1928
Minimum Cost to Reach Destination in Time
Hard
1929
Concatenation of Array
Easy
1936
Add Minimum Number of Rungs
Medium
1937
Maximum Number of Points with Cost
Medium
1938
Maximum Genetic Difference Query
Hard
1942
The Number of the Smallest Unoccupied Chair
Medium
1943
Describe the Painting
Medium
1944
Number of Visible People in a Queue
Hard
1946
Largest Number After Mutating Substring
Medium
1947
Maximum Compatibility Score Sum
Medium
1948
Delete Duplicate Folders in System
Hard
1953
Maximum Number of Weeks for Which You Can Work
Medium
1955
Count Number of Special Subsequences
Hard
1958
Check if Move is Legal
Medium
1959
Minimum Total Space Wasted With K Resizing Operations
Medium
1961
Check If String Is a Prefix of Array
Easy
1962
Remove Stones to Minimize the Total
Medium
1964
Find the Longest Valid Obstacle Course at Each Position
Hard
1967
Number of Strings That Appear as Substrings in Word
Easy
1968
Array With Elements Not Equal to Average of Neighbors
Medium
1970
Last Day Where You Can Still Cross
Hard
1975
Maximum Matrix Sum
Medium
1979
Find Greatest Common Divisor of Array
Easy
1980
Find Unique Binary String
Medium
1981
Minimize the Difference Between Target and Chosen Elements
Medium
1982
Find Array Given Subset Sums
Hard
1984
Minimum Difference Between Highest and Lowest of K Scores
Easy
1985
Find the Kth Largest Integer in the Array
Medium
1986
Minimum Number of Work Sessions to Finish the Tasks
Medium
1991
Find the Middle Index in Array
Easy
1992
Find All Groups of Farmland
Medium
1993
Operations on Tree
Medium
1994
The Number of Good Subsets
Hard
1995
Count Special Quadruplets
Easy
1996
The Number of Weak Characters in the Game
Medium
1997
First Day Where You Have Been in All the Rooms
Medium
1998
GCD Sort of an Array
Hard
2001
Number of Pairs of Interchangeable Rectangles
Medium
2006
Count Number of Pairs With Absolute Difference K
Easy
2007
Find Original Array From Doubled Array
Medium
2008
Maximum Earnings From Taxi
Medium
2009
Minimum Number of Operations to Make Array Continuous
Hard
2011
Final Value of Variable After Performing Operations
Easy
2012
Sum of Beauty in the Array
Medium
2013
Detect Squares
Medium
2016
Maximum Difference Between Increasing Elements
Easy
2017
Grid Game
Medium
2018
Check if Word Can Be Placed In Crossword
Medium
2019
The Score of Students Solving Math Expression
Hard
2022
Convert 1D Array Into 2D Array
Easy
2023
Number of Pairs of Strings With Concatenation Equal to Target
Medium
2025
Maximum Number of Ways to Partition an Array
Hard
2028
Find Missing Observations
Medium
2029
Stone Game IX
Medium
2032
Two Out of Three
Easy
2033
Minimum Operations to Make a Uni-Value Grid
Medium
2035
Partition Array Into Two Arrays to Minimize Sum Difference
Hard
2037
Minimum Number of Moves to Seat Everyone
Easy
2039
The Time When the Network Becomes Idle
Medium
2040
Kth Smallest Product of Two Sorted Arrays
Hard
2043
Simple Bank System
Medium
2044
Count Number of Maximum Bitwise-OR Subsets
Medium
2049
Count Nodes With the Highest Score
Medium
2050
Parallel Courses III
Hard
2053
Kth Distinct String in an Array
Easy
2054
Two Best Non-Overlapping Events
Medium
2055
Plates Between Candles
Medium
2056
Number of Valid Move Combinations On Chessboard
Hard
2057
Smallest Index With Equal Value
Easy
2059
Minimum Operations to Convert Number
Medium
2064
Minimized Maximum of Products Distributed to Any Store
Medium
2065
Maximum Path Quality of a Graph
Hard
2070
Most Beautiful Item for Each Query
Medium
2071
Maximum Number of Tasks You Can Assign
Hard
2073
Time Needed to Buy Tickets
Easy
2078
Two Furthest Houses With Different Colors
Easy
2079
Watering Plants
Medium
2080
Range Frequency Queries
Medium
2085
Count Common Words With One Occurrence
Easy
2087
Minimum Cost Homecoming of a Robot in a Grid
Medium
2088
Count Fertile Pyramids in a Land
Hard
2089
Find Target Indices After Sorting Array
Easy
2090
K Radius Subarray Averages
Medium
2091
Removing Minimum and Maximum From Array
Medium
2094
Finding 3-Digit Even Numbers
Easy
2099
Find Subsequence of Length K With the Largest Sum
Easy
2100
Find Good Days to Rob the Bank
Medium
2101
Detonate the Maximum Bombs
Medium
2104
Sum of Subarray Ranges
Medium
2105
Watering Plants II
Medium
2106
Maximum Fruits Harvested After at Most K Steps
Hard
2108
Find First Palindromic String in the Array
Easy
2109
Adding Spaces to a String
Medium
2110
Number of Smooth Descent Periods of a Stock
Medium
2111
Minimum Operations to Make the Array K-Increasing
Hard
2114
Maximum Number of Words Found in Sentences
Easy
2115
Find All Possible Recipes from Given Supplies
Medium
2121
Intervals Between Identical Elements
Medium
2122
Recover the Original Array
Hard
2125
Number of Laser Beams in a Bank
Medium
2126
Destroying Asteroids
Medium
2131
Longest Palindrome by Concatenating Two Letter Words
Medium
2132
Stamping the Grid
Hard
2133
Check if Every Row and Column Contains All Numbers
Easy
2134
Minimum Swaps to Group All 1's Together II
Medium
2135
Count Words Obtained After Adding a Letter
Medium
2136
Earliest Possible Day of Full Bloom
Hard
2140
Solving Questions With Brainpower
Medium
2141
Maximum Running Time of N Computers
Hard
2144
Minimum Cost of Buying Candies With Discount
Easy
2145
Count the Hidden Sequences
Medium
2146
K Highest Ranked Items Within a Price Range
Medium
2148
Count Elements With Strictly Smaller and Greater Elements
Easy
2149
Rearrange Array Elements by Sign
Medium
2150
Find All Lonely Numbers in the Array
Medium
2151
Maximum Good People Based on Statements
Hard
2154
Keep Multiplying Found Values by Two
Easy
2155
All Divisions With the Highest Score of a Binary Array
Medium
2161
Partition Array According to Given Pivot
Medium
2163
Minimum Difference in Sums After Removal of Elements
Hard
2164
Sort Even and Odd Indices Independently
Easy
2166
Design Bitset
Medium
2170
Minimum Operations to Make the Array Alternating
Medium
2171
Removing Minimum Number of Magic Beans
Medium
2172
Maximum AND Sum of Array
Hard
2176
Count Equal and Divisible Pairs in an Array
Easy
2179
Count Good Triplets in an Array
Hard
2183
Count Array Pairs Divisible by K
Hard
2185
Counting Words With a Given Prefix
Easy
2187
Minimum Time to Complete Trips
Medium
2188
Minimum Time to Finish the Race
Hard
2190
Most Frequent Number Following Key In an Array
Easy
2191
Sort the Jumbled Numbers
Medium
2195
Append K Integers With Minimal Sum
Medium
2196
Create Binary Tree From Descriptions
Medium
2197
Replace Non-Coprime Numbers in Array
Hard
2200
Find All K-Distant Indices in an Array
Easy
2201
Count Artifacts That Can Be Extracted
Medium
2202
Maximize the Topmost Element After K Moves
Medium
2206
Divide Array Into Equal Pairs
Easy
2208
Minimum Operations to Halve Array Sum
Medium
2210
Count Hills and Valleys in an Array
Easy
2212
Maximum Points in an Archery Competition
Medium
2213
Longest Substring of One Repeating Character
Hard
2215
Find the Difference of Two Arrays
Easy
2216
Minimum Deletions to Make Array Beautiful
Medium
2217
Find Palindrome With Fixed Length
Medium
2218
Maximum Value of K Coins From Piles
Hard
2221
Find Triangular Sum of an Array
Medium
2225
Find Players With Zero or One Losses
Medium
2226
Maximum Candies Allocated to K Children
Medium
2227
Encrypt and Decrypt Strings
Hard
2233
Maximum Product After K Increments
Medium
2234
Maximum Total Beauty of the Gardens
Hard
2239
Find Closest Number to Zero
Easy
2241
Design an ATM Machine
Medium
2242
Maximum Score of a Node Sequence
Hard
2244
Minimum Rounds to Complete All Tasks
Medium
2245
Maximum Trailing Zeros in a Cornered Path
Medium
2246
Longest Path With Different Adjacent Characters
Hard
2248
Intersection of Multiple Arrays
Easy
2249
Count Lattice Points Inside a Circle
Medium
2250
Count Number of Rectangles Containing Each Point
Medium
2251
Number of Flowers in Full Bloom
Hard
2255
Count Prefixes of a Given String
Easy
2256
Minimum Average Difference
Medium
2257
Count Unguarded Cells in the Grid
Medium
2258
Escape the Spreading Fire
Hard
2260
Minimum Consecutive Cards to Pick Up
Medium
2261
K Divisible Elements Subarrays
Medium
2267
Check if There Is a Valid Parentheses String Path
Hard
2270
Number of Ways to Split Array
Medium
2271
Maximum White Tiles Covered by a Carpet
Medium
2272
Substring With Largest Variance
Hard
2273
Find Resultant Array After Removing Anagrams
Easy
2274
Maximum Consecutive Floors Without Special Floors
Medium
2275
Largest Combination With Bitwise AND Greater Than Zero
Medium
2279
Maximum Bags With Full Capacity of Rocks
Medium
2280
Minimum Lines to Represent a Line Chart
Medium
2281
Sum of Total Strength of Wizards
Hard
2284
Sender With Largest Word Count
Medium
2289
Steps to Make Array Non-decreasing
Medium
2290
Minimum Obstacle Removal to Reach Corner
Hard
2293
Min Max Game
Easy
2294
Partition Array Such That Maximum Difference Is K
Medium
2295
Replace Elements in an Array
Medium
2300
Successful Pairs of Spells and Potions
Medium
2301
Match Substring After Replacement
Hard
2302
Count Subarrays With Score Less Than K
Hard
2303
Calculate Amount Paid in Taxes
Easy
2304
Minimum Path Cost in a Grid
Medium
2305
Fair Distribution of Cookies
Medium
2306
Naming a Company
Hard
2312
Selling Pieces of Wood
Hard
2317
Maximum XOR After Operations
Medium
2319
Check if Matrix Is X-Matrix
Easy
2321
Maximum Score Of Spliced Array
Hard
2322
Minimum Score After Removals on a Tree
Hard
2326
Spiral Matrix IV
Medium
2328
Number of Increasing Paths in a Grid
Hard
2332
The Latest Time to Catch a Bus
Medium
2333
Minimum Sum of Squared Difference
Medium
2334
Subarray With Elements Greater Than Varying Threshold
Hard
2335
Minimum Amount of Time to Fill Cups
Easy
2341
Maximum Number of Pairs in Array
Easy
2342
Max Sum of a Pair With Equal Sum of Digits
Medium
2343
Query Kth Smallest Trimmed Number
Medium
2344
Minimum Deletions to Make Array Divisible
Hard
2347
Best Poker Hand
Easy
2348
Number of Zero-Filled Subarrays
Medium
2350
Shortest Impossible Sequence of Rolls
Hard
2352
Equal Row and Column Pairs
Medium
2353
Design a Food Rating System
Medium
2354
Number of Excellent Pairs
Hard
2357
Make Array Zero by Subtracting Equal Amounts
Easy
2358
Maximum Number of Groups Entering a Competition
Medium
2363
Merge Similar Items
Easy
2364
Count Number of Bad Pairs
Medium
2365
Task Scheduler II
Medium
2366
Minimum Replacements to Sort the Array
Hard
2367
Number of Arithmetic Triplets
Easy
2368
Reachable Nodes With Restrictions
Medium
2369
Check if There is a Valid Partition For The Array
Medium
2373
Largest Local Values in a Matrix
Easy
2381
Shifting Letters II
Medium
2382
Maximum Segment Sum After Removals
Hard
2383
Minimum Hours of Training to Win a Competition
Easy
2386
Find the K-Sum of an Array
Hard
2389
Longest Subsequence With Limited Sum
Easy
2391
Minimum Amount of Time to Collect Garbage
Medium
2392
Build a Matrix With Conditions
Hard
2395
Find Subarrays With Equal Sum
Easy
2397
Maximum Rows Covered by Columns
Medium
2398
Maximum Number of Robots Within Budget
Hard
2399
Check Distances Between Same Letters
Easy
2401
Longest Nice Subarray
Medium
2402
Meeting Rooms III
Hard
2404
Most Frequent Even Element
Easy
2406
Divide Intervals Into Minimum Number of Groups
Medium
2407
Longest Increasing Subsequence II
Hard
2410
Maximum Matching of Players With Trainers
Medium
2411
Smallest Subarrays With Maximum Bitwise OR
Medium
2412
Minimum Money Required Before Transactions
Hard
2416
Sum of Prefix Scores of Strings
Hard
2418
Sort the People
Easy
2419
Longest Subarray With Maximum Bitwise AND
Medium
2420
Find All Good Indices
Medium
2421
Number of Good Paths
Hard
2425
Bitwise XOR of All Pairings
Medium
2426
Number of Pairs Satisfying Inequality
Hard
2428
Maximum Sum of an Hourglass
Medium
2432
The Employee That Worked on the Longest Task
Easy
2433
Find The Original Array of Prefix Xor
Medium
2435
Paths in Matrix Whose Sum Is Divisible by K
Hard
2438
Range Product Queries of Powers
Medium
2439
Minimize Maximum of Array
Medium
2440
Create Components With Same Value
Hard
2441
Largest Positive Integer That Exists With Its Negative
Easy
2442
Count Number of Distinct Integers After Reverse Operations
Medium
2444
Count Subarrays With Fixed Bounds
Hard
2446
Determine if Two Events Have Conflict
Easy
2447
Number of Subarrays With GCD Equal to K
Medium
2448
Minimum Cost to Make Array Equal
Hard
2449
Minimum Number of Operations to Make Arrays Similar
Hard
2451
Odd String Difference
Easy
2452
Words Within Two Edits of Dictionary
Medium
2453
Destroy Sequential Targets
Medium
2454
Next Greater Element IV
Hard
2455
Average Value of Even Numbers That Are Divisible by Three
Easy
2456
Most Popular Video Creator
Medium
2458
Height of Binary Tree After Subtree Removal Queries
Hard
2460
Apply Operations to an Array
Easy
2461
Maximum Sum of Distinct Subarrays With Length K
Medium
2462
Total Cost to Hire K Workers
Medium
2463
Minimum Total Distance Traveled
Hard
2465
Number of Distinct Averages
Easy
2467
Most Profitable Path in a Tree
Medium
2470
Number of Subarrays With LCM Equal to K
Medium
2475
Number of Unequal Triplets in Array
Easy
2476
Closest Nodes Queries in a Binary Search Tree
Medium
2482
Difference Between Ones and Zeros in Row and Column
Medium
2488
Count Subarrays With Median K
Hard
2491
Divide Players Into Teams of Equal Skill
Medium
2496
Maximum Value of a String in an Array
Easy
2497
Maximum Star Sum of a Graph
Medium
2498
Frog Jump II
Medium
2499
Minimum Total Cost to Make Arrays Unequal
Hard
2500
Delete Greatest Value in Each Row
Easy
2501
Longest Square Streak in an Array
Medium
2502
Design Memory Allocator
Medium
2503
Maximum Number of Points From Grid Queries
Hard
2506
Count Pairs Of Similar Strings
Easy
2509
Cycle Length Queries in a Tree
Hard
2511
Maximum Enemy Forts That Can Be Captured
Easy
2512
Reward Top K Students
Medium
2515
Shortest Distance to Target String in a Circular Array
Easy
2517
Maximum Tastiness of Candy Basket
Medium
2518
Number of Great Partitions
Hard
2521
Distinct Prime Factors of Product of Array
Medium
2527
Find Xor-Beauty of Array
Medium
2528
Maximize the Minimum Powered City
Hard
2529
Maximum Count of Positive Integer and Negative Integer
Easy
2530
Maximal Score After Applying K Operations
Medium
2532
Time to Cross a Bridge
Hard
2535
Difference Between Element Sum and Digit Sum of an Array
Easy
2536
Increment Submatrices by One
Medium
2537
Count the Number of Good Subarrays
Medium
2538
Difference Between Maximum and Minimum Price Sum
Hard
2540
Minimum Common Value
Easy
2541
Minimum Operations to Make Array Equal II
Medium
2542
Maximum Subsequence Score
Medium
2545
Sort the Students by Their Kth Score
Medium
2547
Minimum Cost to Split an Array
Hard
2549
Count Distinct Numbers on Board
Easy
2551
Put Marbles in Bags
Hard
2552
Count Increasing Quadruplets
Hard
2553
Separate the Digits in an Array
Easy
2554
Maximum Number of Integers to Choose From a Range I
Medium
2555
Maximize Win From Two Segments
Medium
2556
Disconnect Path in a Binary Matrix by at Most One Flip
Medium
2558
Take Gifts From the Richest Pile
Easy
2559
Count Vowel Strings in Ranges
Medium
2560
House Robber IV
Medium
2561
Rearranging Fruits
Hard
2562
Find the Array Concatenation Value
Easy
2563
Count the Number of Fair Pairs
Medium
2564
Substring XOR Queries
Medium
2567
Minimum Score by Changing Two Elements
Medium
2568
Minimum Impossible OR
Medium
2569
Handling Sum Queries After Update
Hard
2570
Merge Two 2D Arrays by Summing Values
Easy
2572
Count the Number of Square-Free Subsets
Medium
2573
Find the String with LCP
Hard
2574
Left and Right Sum Differences
Easy
2575
Find the Divisibility Array of a String
Medium
2576
Find the Maximum Number of Marked Indices
Medium
2577
Minimum Time to Visit a Cell In a Grid
Hard
2580
Count Ways to Group Overlapping Ranges
Medium
2581
Count Number of Possible Root Nodes
Hard
2584
Split the Array to Make Coprime Products
Hard
2585
Number of Ways to Earn Points
Hard
2586
Count the Number of Vowel Strings in Range
Easy
2587
Rearrange Array to Maximize Prefix Score
Medium
2588
Count the Number of Beautiful Subarrays
Medium
2589
Minimum Time to Complete All Tasks
Hard
2592
Maximize Greatness of an Array
Medium
2593
Find Score of an Array After Marking All Elements
Medium
2594
Minimum Time to Repair Cars
Medium
2596
Check Knight Tour Configuration
Medium
2597
The Number of Beautiful Subsets
Medium
2598
Smallest Missing Non-negative Integer After Operations
Medium
2601
Prime Subtraction Operation
Medium
2602
Minimum Operations to Make All Array Elements Equal
Medium
2603
Collect Coins in a Tree
Hard
2605
Form Smallest Number From Two Digit Arrays
Easy
2606
Find the Substring With Maximum Cost
Medium
2607
Make K-Subarray Sums Equal
Medium
2610
Convert an Array Into a 2D Array With Conditions
Medium
2611
Mice and Cheese
Medium
2612
Minimum Reverse Operations
Hard
2614
Prime In Diagonal
Easy
2615
Sum of Distances
Medium
2616
Minimize the Maximum Difference of Pairs
Medium
2617
Minimum Number of Visited Cells in a Grid
Hard
2639
Find the Width of Columns of a Grid
Easy
2640
Find the Score of All Prefixes of an Array
Medium
2643
Row With Maximum Ones
Easy
2644
Find the Maximum Divisibility Score
Easy
2646
Minimize the Total Price of the Trips
Hard
2653
Sliding Subarray Beauty
Medium
2654
Minimum Number of Operations to Make All Array Elements Equal to 1
Medium
2656
Maximum Sum With Exactly K Elements
Easy
2657
Find the Prefix Common Array of Two Arrays
Medium
2658
Maximum Number of Fish in a Grid
Medium
2659
Make Array Empty
Hard
2660
Determine the Winner of a Bowling Game
Easy
2661
First Completely Painted Row or Column
Medium
2662
Minimum Cost of a Path With Special Roads
Medium
2670
Find the Distinct Difference Array
Easy
2672
Number of Adjacent Elements With the Same Color
Medium
2673
Make Costs of Paths Equal in a Binary Tree
Medium
2678
Number of Senior Citizens
Easy
2679
Sum in a Matrix
Medium
2680
Maximum OR
Medium
2681
Power of Heroes
Hard
2682
Find the Losers of the Circular Game
Easy
2683
Neighboring Bitwise XOR
Medium
2684
Maximum Number of Moves in a Grid
Medium
2706
Buy Two Chocolates
Easy
2707
Extra Characters in a String
Medium
2708
Maximum Strength of a Group
Medium
2709
Greatest Common Divisor Traversal
Hard
2711
Difference of Number of Distinct Values on Diagonals
Medium
2713
Maximum Strictly Increasing Cells in a Matrix
Hard
2717
Semi-Ordered Permutation
Easy
2718
Sum of Matrix After Queries
Medium
2731
Movement of Robots
Medium
2732
Find a Good Subset of the Matrix
Hard
2733
Neither Minimum nor Maximum
Easy
2735
Collecting Chocolates
Medium
2736
Maximum Sum Queries
Hard
2740
Find the Value of the Partition
Medium
2741
Special Permutations
Medium
2742
Painting the Walls
Hard
2744
Find Maximum Number of String Pairs
Easy
2746
Decremental String Concatenation
Medium
2747
Count Zero Request Servers
Medium
2748
Number of Beautiful Pairs
Easy
2750
Ways to Split Array Into Good Subarrays
Medium
2751
Robot Collisions
Hard
2760
Longest Even Odd Subarray With Threshold
Easy
2761
Prime Pairs With Target Sum
Medium
2762
Continuous Subarrays
Medium
2763
Sum of Imbalance Numbers of All Subarrays
Hard
2765
Longest Alternating Subarray
Easy
2766
Relocate Marbles
Medium
2768
Number of Black Blocks
Medium
2770
Maximum Number of Jumps to Reach the Last Index
Medium
2771
Longest Non-decreasing Subarray From Two Arrays
Medium
2772
Apply Operations to Make All Array Elements Equal to Zero
Medium
2778
Sum of Squares of Special Elements
Easy
2779
Maximum Beauty of an Array After Applying Operation
Medium
2780
Minimum Index of a Valid Split
Medium
2781
Length of the Longest Valid Substring
Hard
2784
Check if Array is Good
Easy
2786
Visit Array Positions to Maximize Score
Medium
2788
Split Strings by Separator
Easy
2789
Largest Element in an Array after Merge Operations
Medium
2790
Maximum Number of Groups With Increasing Length
Hard
2798
Number of Employees Who Met the Target
Easy
2799
Count Complete Subarrays in an Array
Medium
2808
Minimum Seconds to Equalize a Circular Array
Medium
2809
Minimum Time to Make Array Sum At Most x
Hard
2811
Check if it is Possible to Split Array
Medium
2812
Find the Safest Path in a Grid
Medium
2813
Maximum Elegance of a K-Length Subsequence
Hard
2815
Max Pair Sum in an Array
Easy
2817
Minimum Absolute Difference Between Elements With Constraint
Medium
2818
Apply Operations to Maximize Score
Hard
2824
Count Pairs Whose Sum is Less than Target
Easy
2826
Sorting Three Groups
Medium
2828
Check if a String Is an Acronym of Words
Easy
2830
Maximize the Profit as the Salesman
Medium
2831
Find the Longest Equal Subarray
Medium
2835
Minimum Operations to Form Subsequence With Target Sum
Hard
2836
Maximize Value of Function in a Ball Passing Game
Hard
2841
Maximum Sum of Almost Unique Subarray
Medium
2845
Count of Interesting Subarrays
Medium
2846
Minimum Edge Weight Equilibrium Queries in a Tree
Hard
2848
Points That Intersect With Cars
Easy
2850
Minimum Moves to Spread Stones Over Grid
Medium
2855
Minimum Right Shifts to Sort the Array
Easy
2856
Minimum Array Length After Pair Removals
Medium
2857
Count Pairs of Points With Distance k
Medium
2859
Sum of Values at Indices With K Set Bits
Easy
2860
Happy Students
Medium
2861
Maximum Number of Alloys
Medium
2862
Maximum Element-Sum of a Complete Subset of Indices
Hard
2865
Beautiful Towers I
Medium
2866
Beautiful Towers II
Medium
2869
Minimum Operations to Collect Elements
Easy
2870
Minimum Number of Operations to Make Array Empty
Medium
2871
Split Array Into Maximum Number of Subarrays
Medium
2873
Maximum Value of an Ordered Triplet I
Easy
2874
Maximum Value of an Ordered Triplet II
Medium
2875
Minimum Size Subarray in Infinite Array
Medium
2895
Minimum Processing Time
Medium
2897
Apply Operations on Array to Maximize Sum of Squares
Hard
2899
Last Visited Integers
Easy
2900
Longest Unequal Adjacent Groups Subsequence I
Easy
2901
Longest Unequal Adjacent Groups Subsequence II
Medium
2902
Count of Sub-Multisets With Bounded Sum
Hard
2903
Find Indices With Index and Value Difference I
Easy
2905
Find Indices With Index and Value Difference II
Medium
2906
Construct Product Matrix
Medium
2908
Minimum Sum of Mountain Triplets I
Easy
2909
Minimum Sum of Mountain Triplets II
Medium
2910
Minimum Number of Groups to Create a Valid Assignment
Medium
2913
Subarrays Distinct Element Sum of Squares I
Easy
2915
Length of the Longest Subsequence That Sums to Target
Medium
2916
Subarrays Distinct Element Sum of Squares II
Hard
2917
Find the K-or of an Array
Easy
2918
Minimum Equal Sum of Two Arrays After Replacing Zeros
Medium
2919
Minimum Increment Operations to Make Array Beautiful
Medium
2920
Maximum Points After Collecting Coins From All Nodes
Hard
2923
Find Champion I
Easy
2926
Maximum Balanced Subsequence Sum
Hard
2931
Maximum Spending After Buying Items
Hard
2932
Maximum Strong Pair XOR I
Easy
2933
High-Access Employees
Medium
2934
Minimum Operations to Maximize Last Elements in Arrays
Medium
2935
Maximum Strong Pair XOR II
Hard
2940
Find Building Where Alice and Bob Can Meet
Hard
2942
Find Words Containing Character
Easy
2943
Maximize Area of Square Hole in Grid
Medium
2944
Minimum Number of Coins for Fruits
Medium
2945
Find Maximum Non-decreasing Array Length
Hard
2946
Matrix Similarity After Cyclic Shifts
Easy
2948
Make Lexicographically Smallest Array by Swapping Elements
Medium
2951
Find the Peaks
Easy
2952
Minimum Number of Coins to be Added
Medium
2954
Count the Number of Infection Sequences
Hard
2956
Find Common Elements Between Two Arrays
Easy
2958
Length of Longest Subarray With at Most K Frequency
Medium
2960
Count Tested Devices After Test Operations
Easy
2961
Double Modular Exponentiation
Medium
2962
Count Subarrays Where Max Element Appears at Least K Times
Medium
2963
Count the Number of Good Partitions
Hard
2965
Find Missing and Repeated Values
Easy
2966
Divide Array Into Arrays With Max Difference
Medium
2967
Minimum Cost to Make Array Equalindromic
Medium
2968
Apply Operations to Maximize Frequency Score
Hard
2970
Count the Number of Incremovable Subarrays I
Easy
2971
Find Polygon With the Largest Perimeter
Medium
2972
Count the Number of Incremovable Subarrays II
Hard
2974
Minimum Number Game
Easy
2975
Maximum Square Area by Removing Fences From a Field
Medium
2976
Minimum Cost to Convert String I
Medium
2977
Minimum Cost to Convert String II
Hard
2980
Check if Bitwise OR Has Trailing Zeros
Easy
2996
Smallest Missing Integer Greater Than Sequential Prefix Sum
Easy
2997
Minimum Number of Operations to Make Array XOR Equal to K
Medium
3000
Maximum Area of Longest Diagonal Rectangle
Easy
3002
Maximum Size of a Set After Removals
Medium
3005
Count Elements With Maximum Frequency
Easy
3010
Divide an Array Into Subarrays With Minimum Cost I
Easy
3011
Find if Array Can Be Sorted
Medium
3012
Minimize Length of Array Using Operations
Medium
3013
Divide an Array Into Subarrays With Minimum Cost II
Hard
3020
Find the Maximum Number of Elements in Subset
Medium
3022
Minimize OR of Remaining Elements Using Operations
Hard
3024
Type of Triangle
Easy
3025
Find the Number of Ways to Place People I
Medium
3026
Maximum Good Subarray Sum
Medium
3027
Find the Number of Ways to Place People II
Hard
3028
Ant on the Boundary
Easy
3030
Find the Grid of Region Average
Medium
3033
Modify the Matrix
Easy
3034
Number of Subarrays That Match a Pattern I
Medium
3035
Maximum Palindromes After Operations
Medium
3036
Number of Subarrays That Match a Pattern II
Hard
3038
Maximum Number of Operations With the Same Score I
Easy
3039
Apply Operations to Make String Empty
Medium
3040
Maximum Number of Operations With the Same Score II
Medium
3041
Maximize Consecutive Elements in an Array After Modification
Hard
3042
Count Prefix and Suffix Pairs I
Easy
3043
Find the Length of the Longest Common Prefix
Medium
3044
Most Frequent Prime
Medium
3045
Count Prefix and Suffix Pairs II
Hard
3046
Split the Array
Easy
3047
Find the Largest Area of Square Inside Two Rectangles
Medium
3048
Earliest Second to Mark Indices I
Medium
3049
Earliest Second to Mark Indices II
Hard
3065
Minimum Operations to Exceed Threshold Value I
Easy
3066
Minimum Operations to Exceed Threshold Value II
Medium
3067
Count Pairs of Connectable Servers in a Weighted Tree Network
Medium
3068
Find the Maximum Sum of Node Values
Hard
3069
Distribute Elements Into Two Arrays I
Easy
3070
Count Submatrices with Top-Left Element and Sum Less Than k
Medium
3071
Minimum Operations to Write the Letter Y on a Grid
Medium
3072
Distribute Elements Into Two Arrays II
Hard
3074
Apple Redistribution into Boxes
Easy
3075
Maximize Happiness of Selected Children
Medium
3076
Shortest Uncommon Substring in an Array
Medium
3077
Maximum Strength of K Disjoint Subarrays
Hard
3079
Find the Sum of Encrypted Integers
Easy
3080
Mark Elements on Array by Performing Queries
Medium
3082
Find the Sum of the Power of All Subsequences
Hard
3086
Minimum Moves to Pick K Ones
Hard
3092
Most Frequent IDs
Medium
3093
Longest Common Suffix Queries
Hard
3095
Shortest Subarray With OR at Least K I
Easy
3096
Minimum Levels to Gain More Points
Medium
3097
Shortest Subarray With OR at Least K II
Medium
3098
Find the Sum of Subsequence Powers
Hard
3101
Count Alternating Subarrays
Medium
3102
Minimize Manhattan Distances
Hard
3105
Longest Strictly Increasing or Strictly Decreasing Subarray
Easy
3107
Minimum Operations to Make Median of Array Equal to K
Medium
3108
Minimum Cost Walk in Weighted Graph
Hard
3111
Minimum Rectangles to Cover Points
Medium
3112
Minimum Time to Visit Disappearing Nodes
Medium
3113
Find the Number of Subarrays Where Boundary Elements Are Maximum
Hard
3115
Maximum Prime Difference
Medium
3116
Kth Smallest Amount With Single Denomination Combination
Hard
3117
Minimum Sum of Values by Dividing Array
Hard
3122
Minimum Number of Operations to Satisfy Conditions
Medium
3127
Make a Square with the Same Color
Easy
3128
Right Triangles
Medium
3131
Find the Integer Added to Array I
Easy
3132
Find the Integer Added to Array II
Medium
3134
Find the Median of the Uniqueness Array
Hard
3139
Minimum Cost to Equalize Array
Hard
3142
Check if Grid Satisfies Conditions
Easy
3143
Maximum Points Inside the Square
Medium
3145
Find Products of Elements of Big Array
Hard
3147
Taking Maximum Energy From the Mystic Dungeon
Medium
3148
Maximum Difference Score in a Grid
Medium
3149
Find the Minimum Cost Array Permutation
Hard
3151
Special Array I
Easy
3152
Special Array II
Medium
3153
Sum of Digit Differences of All Pairs
Medium
3158
Find the XOR of Numbers Which Appear Twice
Easy
3159
Find Occurrences of an Element in an Array
Medium
3160
Find the Number of Distinct Colors Among the Balls
Medium
3161
Block Placement Queries
Hard
3162
Find the Number of Good Pairs I
Easy
3164
Find the Number of Good Pairs II
Medium
3165
Maximum Sum of Subsequence With Non-adjacent Elements
Hard
3169
Count Days Without Meetings
Medium
3171
Find Subarray With Bitwise OR Closest to K
Hard
3175
Find The First Player to win K Games in a Row
Medium
3176
Find the Maximum Length of a Good Subsequence I
Medium
3177
Find the Maximum Length of a Good Subsequence II
Hard
3179
Find the N-th Value After K Seconds
Medium
3180
Maximum Total Reward Using Operations I
Medium
3181
Maximum Total Reward Using Operations II
Hard
3184
Count Pairs That Form a Complete Day I
Easy
3185
Count Pairs That Form a Complete Day II
Medium
3186
Maximum Total Damage With Spell Casting
Medium
3187
Peaks in Array
Hard
3190
Find Minimum Operations to Make All Elements Divisible by Three
Easy
3191
Minimum Operations to Make Binary Array Elements Equal to One I
Medium
3192
Minimum Operations to Make Binary Array Elements Equal to One II
Medium
3193
Count the Number of Inversions
Hard
3194
Minimum Average of Smallest and Largest Elements
Easy
3195
Find the Minimum Area to Cover All Ones I
Medium
3196
Maximize Total Cost of Alternating Subarrays
Medium
3197
Find the Minimum Area to Cover All Ones II
Hard
3200
Maximum Height of a Triangle
Easy
3201
Find the Maximum Length of Valid Subsequence I
Medium
3202
Find the Maximum Length of Valid Subsequence II
Medium
3206
Alternating Groups I
Easy
3207
Maximum Points After Enemy Battles
Medium
3208
Alternating Groups II
Medium
3209
Number of Subarrays With AND Value of K
Hard
3212
Count Submatrices With Equal Frequency of X and Y
Medium
3213
Construct String with Minimum Cost
Hard
3217
Delete Nodes From Linked List Present in Array
Medium
3218
Minimum Cost for Cutting Cake I
Medium
3219
Minimum Cost for Cutting Cake II
Hard
3224
Minimum Array Changes to Make Differences Equal
Medium
3225
Maximum Score From Grid Operations
Hard
3229
Minimum Operations to Make Array Equal to Target
Hard
3232
Find if Digit Game Can Be Won
Easy
3233
Find the Count of Numbers Which Are Not Special
Medium
3235
Check if the Rectangle Corner Is Reachable
Hard
3238
Find the Number of Winning Players
Easy
3239
Minimum Number of Flips to Make Binary Grid Palindromic I
Medium
3240
Minimum Number of Flips to Make Binary Grid Palindromic II
Medium
3242
Design Neighbor Sum Service
Easy
3243
Shortest Distance After Road Addition Queries I
Medium
3244
Shortest Distance After Road Addition Queries II
Hard
3245
Alternating Groups III
Hard
3248
Snake in Matrix
Easy
3250
Find the Count of Monotonic Pairs I
Hard
3251
Find the Count of Monotonic Pairs II
Hard
3254
Find the Power of K-Size Subarrays I
Medium
3255
Find the Power of K-Size Subarrays II
Medium
3256
Maximum Value Sum by Placing Three Rooks I
Hard
3257
Maximum Value Sum by Placing Three Rooks II
Hard
3259
Maximum Energy Boost From Two Drinks
Medium
3261
Count Substrings That Satisfy K-Constraint II
Hard
3264
Final Array State After K Multiplication Operations I
Easy
3265
Count Almost Equal Pairs I
Medium
3266
Final Array State After K Multiplication Operations II
Hard
3267
Count Almost Equal Pairs II
Hard
3273
Minimum Amount of Damage Dealt to Bob
Hard
3275
K-th Nearest Obstacle Queries
Medium
3276
Select Cells in Grid With Maximum Score
Hard
3277
Maximum XOR Score Subarray Queries
Hard
3281
Maximize Score of Numbers in Ranges
Medium
3282
Reach End of Array With Max Score
Medium
3283
Maximum Number of Moves to Kill All Pawns
Hard
3285
Find Indices of Stable Mountains
Easy
3286
Find a Safe Walk Through a Grid
Medium
3287
Find the Maximum Sequence Value of Array
Hard
3288
Length of the Longest Increasing Path
Hard
3289
The Two Sneaky Numbers of Digitville
Easy
3290
Maximum Multiplication Score
Medium
3291
Minimum Number of Valid Strings to Form Target I
Medium
3292
Minimum Number of Valid Strings to Form Target II
Hard
3295
Report Spam Message
Medium
3296
Minimum Number of Seconds to Make Mountain Height Zero
Medium
3300
Minimum Element After Replacement With Digit Sum
Easy
3301
Maximize the Total Height of Unique Towers
Medium
3309
Maximum Possible Number by Binary Concatenation
Medium
3311
Construct 2D Grid Matching Graph Layout
Hard
3312
Sorted GCD Pair Queries
Hard
3314
Construct the Minimum Bitwise Array I
Easy
3315
Construct the Minimum Bitwise Array II
Medium
3316
Find Maximum Removals From Source String
Medium
3318
Find X-Sum of All K-Long Subarrays I
Easy
3321
Find X-Sum of All K-Long Subarrays II
Hard
3326
Minimum Division Operations to Make Array Non Decreasing
Medium
3327
Check if DFS Strings Are Palindromes
Hard
3331
Find Subtree Sizes After Changes
Medium
3332
Maximum Points Tourist Can Earn
Medium
3334
Find the Maximum Factor Score of Array
Medium
3336
Find the Number of Subsequences With Equal GCD
Hard
3341
Find Minimum Time to Reach Last Room I
Medium
3342
Find Minimum Time to Reach Last Room II
Medium
3346
Maximum Frequency of an Element After Performing Operations I
Medium
3347
Maximum Frequency of an Element After Performing Operations II
Hard
3349
Adjacent Increasing Subarrays Detection I
Easy
3350
Adjacent Increasing Subarrays Detection II
Medium
3351
Sum of Good Subsequences
Hard
3354
Make Array Elements Equal to Zero
Easy
3355
Zero Array Transformation I
Medium
3356
Zero Array Transformation II
Medium
3357
Minimize the Maximum Adjacent Element Difference
Hard
3361
Shift Distance Between Two Strings
Medium
3362
Zero Array Transformation III
Medium
3363
Find the Maximum Number of Fruits Collected
Hard
3364
Minimum Positive Sum Subarray
Easy
3366
Minimum Array Sum
Medium
3371
Identify the Largest Outlier in an Array
Medium
3375
Minimum Operations to Make Array Values Equal to K
Easy
3376
Minimum Time to Break Locks I
Medium
3378
Count Connected Components in LCM Graph
Hard
3379
Transformed Array
Easy
3380
Maximum Area Rectangle With Point Constraints I
Medium
3381
Maximum Subarray Sum With Length Divisible by K
Medium
3382
Maximum Area Rectangle With Point Constraints II
Hard
3386
Button with Longest Push Time
Easy
3387
Maximize Amount After Two Days of Conversions
Medium
3388
Count Beautiful Splits in an Array
Medium
3392
Count Subarrays of Length Three With a Condition
Easy
3393
Count Paths With the Given XOR Value
Medium
3394
Check if Grid can be Cut into Sections
Medium
3395
Subsequences with a Unique Middle Mode I
Hard
3396
Minimum Number of Operations to Make Elements in Array Distinct
Easy
3397
Maximum Number of Distinct Elements After Operations
Medium
3398
Smallest Substring With Identical Characters I
Hard
3402
Minimum Operations to Make Columns Strictly Increasing
Easy
3404
Count Special Subsequences
Medium
3409
Longest Subsequence With Decreasing Adjacent Difference
Medium
3410
Maximize Subarray Sum After Removing All Occurrences of One Element
Hard
3411
Maximum Subarray With Equal Products
Easy
3413
Maximum Coins From K Consecutive Bags
Medium
3414
Maximum Score of Non-overlapping Intervals
Hard
3417
Zigzag Grid Traversal With Skip
Easy
3418
Maximum Amount of Money Robot Can Earn
Medium
3420
Count Non-Decreasing Subarrays After K Operations
Hard
3423
Maximum Difference Between Adjacent Elements in a Circular Array
Easy
3424
Minimum Cost to Make Arrays Identical
Medium
3425
Longest Special Path
Hard
3427
Sum of Variable Length Subarrays
Easy
3428
Maximum and Minimum Sums of at Most Size K Subsequences
Medium
3429
Paint House IV
Medium
3430
Maximum and Minimum Sums of at Most Size K Subarrays
Hard
3432
Count Partitions with Even Sum Difference
Easy
3433
Count Mentions Per User
Medium
3434
Maximum Frequency After Subarray Operation
Medium
3435
Frequencies of Shortest Supersequences
Hard
3439
Reschedule Meetings for Maximum Free Time I
Medium
3440
Reschedule Meetings for Maximum Free Time II
Medium
3444
Minimum Increments for Target Multiples in an Array
Hard
3446
Sort Matrix by Diagonals
Medium
3447
Assign Elements to Groups with Constraints
Medium
3449
Maximize the Minimum Game Score
Hard
3452
Sum of Good Numbers
Easy
3453
Separate Squares I
Medium
3454
Separate Squares II
Hard
3457
Eat Pizzas!
Medium
3459
Length of Longest V-Shaped Diagonal Segment
Hard
3462
Maximum Sum With at Most K Elements
Medium
3464
Maximize the Distance Between Points on a Square
Hard
3467
Transform Array by Parity
Easy
3468
Find the Number of Copy Arrays
Medium
3469
Find Minimum Cost to Remove Array Elements
Medium
3470
Permutations IV
Hard
3471
Find the Largest Almost Missing Integer
Easy
3473
Sum of K Subarrays With Length at Least M
Medium
3477
Fruits Into Baskets II
Easy
3478
Choose K Elements With Maximum Sum
Medium
3479
Fruits Into Baskets III
Medium
3480
Maximize Subarrays After Removing One Conflicting Pair
Hard
3483
Unique 3-Digit Even Numbers
Easy
3484
Design Spreadsheet
Medium
3485
Longest Common Prefix of K Strings After Removal
Hard
3486
Longest Special Path II
Hard
3487
Maximum Unique Subarray Sum After Deletion
Easy
3488
Closest Equal Element Queries
Medium
3489
Zero Array Transformation IV
Medium
3493
Properties Graph
Medium
3494
Find the Minimum Amount of Time to Brew Potions
Medium
3495
Minimum Operations to Make Array Elements Zero
Hard
3500
Minimum Cost to Divide Array Into Subarrays
Hard
3501
Maximize Active Section with Trade II
Hard
3502
Minimum Cost to Reach Every Position
Easy
3505
Minimum Operations to Make Elements Within K Subarrays Equal
Hard
3507
Minimum Pair Removal to Sort Array I
Easy
3508
Implement Router
Medium
3509
Maximum Product of Subsequences With an Alternating Sum Equal to K
Hard
3510
Minimum Pair Removal to Sort Array II
Hard
3512
Minimum Operations to Make Array Sum Divisible by K
Easy
3513
Number of Unique XOR Triplets I
Medium
3514
Number of Unique XOR Triplets II
Medium
3515
Shortest Path in a Weighted Tree
Hard
3522
Calculate Score After Performing Instructions
Medium
3523
Make Array Non-decreasing
Medium
3524
Find X Value of Array I
Medium
3525
Find X Value of Array II
Hard
3527
Find the Most Common Response
Medium
3529
Count Cells in Overlapping Horizontal and Vertical Substrings
Medium
3530
Maximum Profit from Valid Topological Order in DAG
Hard
3531
Count Covered Buildings
Medium
3532
Path Existence Queries in a Graph I
Medium
3533
Concatenated Divisibility
Hard
3534
Path Existence Queries in a Graph II
Hard
3537
Fill a Special Grid
Medium
3538
Merge Operations for Minimum Travel Time
Hard
3539
Find Sum of Array Product of Magical Sequences
Hard
3542
Minimum Operations to Convert All Elements to Zero
Medium
3544
Subtree Inversion Sum
Hard
3546
Equal Sum Grid Partition I
Medium
3548
Equal Sum Grid Partition II
Hard
3550
Smallest Index With Digit Sum Equal to Index
Easy
3551
Minimum Swaps to Sort by Digit Sum
Medium
3552
Grid Teleportation Traversal
Medium
3553
Minimum Weighted Subgraph With the Required Paths II
Hard
3559
Number of Ways to Assign Edge Weights II
Hard
3562
Maximum Profit from Trading Stocks with Discounts
Hard
3566
Partition Array into Two Equal Product Subsets
Medium
3567
Minimum Absolute Difference in Sliding Submatrix
Medium
3568
Minimum Moves to Clean the Classroom
Medium
3569
Maximize Count of Distinct Primes After Split
Hard
3572
Maximize Y‑Sum by Picking a Triplet of Distinct X‑Values
Medium
3573
Best Time to Buy and Sell Stock V
Medium
3574
Maximize Subarray GCD Score
Hard
3575
Maximum Good Subtree Score
Hard
3576
Transform Array to All Equal Elements
Medium
3577
Count the Number of Computer Unlocking Permutations
Medium
3578
Count Partitions With Max-Min Difference at Most K
Medium
3583
Count Special Triplets
Medium
3584
Maximum Product of First and Last Elements of a Subsequence
Medium
3585
Find Weighted Median Node in Tree
Hard
3587
Minimum Adjacent Swaps to Alternate Parity
Medium
3588
Find Maximum Area of a Triangle
Medium
3589
Count Prime-Gap Balanced Subarrays
Medium
3590
Kth Smallest Path XOR Sum
Hard
3591
Check if Any Element Has Prime Frequency
Easy
3592
Inverse Coin Change
Medium
3593
Minimum Increments to Equalize Leaf Paths
Medium
3594
Minimum Time to Transport All Individuals
Hard
3598
Longest Common Prefix Between Adjacent Strings After Removals
Medium
3599
Partition Array to Minimize XOR
Medium
3603
Minimum Cost Path with Alternating Directions II
Medium
3605
Minimum Stability Factor of Array
Hard
3606
Coupon Code Validator
Easy
3607
Power Grid Maintenance
Medium
3618
Split Array by Prime Indices
Medium
3619
Count Islands With Total Value Divisible by K
Medium
3620
Network Recovery Pathways
Hard
3623
Count Number of Trapezoids I
Medium
3624
Number of Integers With Popcount-Depth Equal to K II
Hard
3625
Count Number of Trapezoids II
Hard
3630
Partition Array for Maximum XOR and AND
Hard
← Browse all LeetCode problems