Array Problems
1,674 Array LeetCode problems · Browse tasks by difficulty and choose your next practice problem.
Learn the coding interview patterns behind these problems.
Start with these
1 Two Sum Easy4 Median of Two Sorted Arrays Hard11 Container With Most Water Medium14 Longest Common Prefix Easy15 3Sum Medium33 Search in Rotated Sorted Array Medium35 Search Insert Position Easy39 Combination Sum Medium42 Trapping Rain Water Hard46 Permutations Medium48 Rotate Image Medium49 Group Anagrams Medium53 Maximum Subarray Medium54 Spiral Matrix Medium55 Jump Game Medium56 Merge Intervals Medium57 Insert Interval Medium73 Set Matrix Zeroes Medium78 Subsets Medium79 Word Search Medium88 Merge Sorted Array Easy105 Construct Binary Tree from Preorder and Inorder Traversal Medium121 Best Time to Buy and Sell Stock Easy122 Best Time to Buy and Sell Stock II Medium128 Longest Consecutive Sequence Medium136 Single Number Easy139 Word Break Medium152 Maximum Product Subarray Medium153 Find Minimum in Rotated Sorted Array Medium167 Two Sum II - Input Array Is Sorted Medium169 Majority Element Easy198 House Robber Medium200 Number of Islands Medium212 Word Search II Hard213 House Robber II Medium215 Kth Largest Element in an Array Medium217 Contains Duplicate Easy221 Maximal Square Medium238 Product of Array Except Self Medium268 Missing Number Easy283 Move Zeroes Easy300 Longest Increasing Subsequence Medium322 Coin Change Medium347 Top K Frequent Elements Medium417 Pacific Atlantic Water Flow Medium435 Non-overlapping Intervals Medium539 Minimum Time Difference Medium621 Task Scheduler Medium749 Contain Virus Hard781 Rabbits in Forest Medium804 Unique Morse Code Words Easy929 Unique Email Addresses Easy994 Rotting Oranges Medium1914 Cyclically Rotating a Grid Medium1938 Maximum Genetic Difference Query Hard1959 Minimum Total Space Wasted With K Resizing Operations Medium2421 Number of Good Paths Hard2619 Array Prototype Last Easy3048 Earliest Second to Mark Indices I Medium3049 Earliest Second to Mark Indices II Hard3152 Special Array II Medium3225 Maximum Score From Grid Operations Hard3256 Maximum Value Sum by Placing Three Rooks I Hard3273 Minimum Amount of Damage Dealt to Bob Hard3282 Reach End of Array With Max Score Medium3288 Length of the Longest Increasing Path Hard3291 Minimum Number of Valid Strings to Form Target I Medium3292 Minimum Number of Valid Strings to Form Target II Hard3301 Maximize the Total Height of Unique Towers Medium3311 Construct 2D Grid Matching Graph Layout Hard3327 Check if DFS Strings Are Palindromes Hard3524 Find X Value of Array I Medium3531 Count Covered Buildings Medium3559 Number of Ways to Assign Edge Weights II Hard
All Array problems
1 Two Sum Easy4 Median of Two Sorted Arrays Hard11 Container With Most Water Medium14 Longest Common Prefix Easy15 3Sum Medium16 3Sum Closest Medium18 4Sum Medium26 Remove Duplicates from Sorted Array Easy27 Remove Element Easy31 Next Permutation Medium33 Search in Rotated Sorted Array Medium34 Find First and Last Position of Element in Sorted Array Medium35 Search Insert Position Easy36 Valid Sudoku Medium37 Sudoku Solver Hard39 Combination Sum Medium40 Combination Sum II Medium41 First Missing Positive Hard42 Trapping Rain Water Hard45 Jump Game II Medium46 Permutations Medium47 Permutations II Medium48 Rotate Image Medium49 Group Anagrams Medium51 N-Queens Hard53 Maximum Subarray Medium54 Spiral Matrix Medium55 Jump Game Medium56 Merge Intervals Medium57 Insert Interval Medium59 Spiral Matrix II Medium63 Unique Paths II Medium64 Minimum Path Sum Medium66 Plus One Easy68 Text Justification Hard73 Set Matrix Zeroes Medium74 Search a 2D Matrix Medium75 Sort Colors Medium78 Subsets Medium79 Word Search Medium80 Remove Duplicates from Sorted Array II Medium81 Search in Rotated Sorted Array II Medium84 Largest Rectangle in Histogram Hard85 Maximal Rectangle Hard88 Merge Sorted Array Easy90 Subsets II Medium105 Construct Binary Tree from Preorder and Inorder Traversal Medium106 Construct Binary Tree from Inorder and Postorder Traversal Medium108 Convert Sorted Array to Binary Search Tree Easy118 Pascal's Triangle Easy119 Pascal's Triangle II Easy120 Triangle Medium121 Best Time to Buy and Sell Stock Easy122 Best Time to Buy and Sell Stock II Medium123 Best Time to Buy and Sell Stock III Hard128 Longest Consecutive Sequence Medium130 Surrounded Regions Medium134 Gas Station Medium135 Candy Hard136 Single Number Easy137 Single Number II Medium139 Word Break Medium140 Word Break II Hard149 Max Points on a Line Hard150 Evaluate Reverse Polish Notation Medium152 Maximum Product Subarray Medium153 Find Minimum in Rotated Sorted Array Medium154 Find Minimum in Rotated Sorted Array II Hard162 Find Peak Element Medium164 Maximum Gap Medium167 Two Sum II - Input Array Is Sorted Medium169 Majority Element Easy174 Dungeon Game Hard179 Largest Number Medium188 Best Time to Buy and Sell Stock IV Hard189 Rotate Array Medium198 House Robber Medium200 Number of Islands Medium204 Count Primes Medium209 Minimum Size Subarray Sum Medium212 Word Search II Hard213 House Robber II Medium215 Kth Largest Element in an Array Medium216 Combination Sum III Medium217 Contains Duplicate Easy218 The Skyline Problem Hard219 Contains Duplicate II Easy220 Contains Duplicate III Hard221 Maximal Square Medium228 Summary Ranges Easy229 Majority Element II Medium238 Product of Array Except Self Medium239 Sliding Window Maximum Hard240 Search a 2D Matrix II Medium260 Single Number III Medium268 Missing Number Easy274 H-Index Medium275 H-Index II Medium283 Move Zeroes Easy284 Peeking Iterator Medium287 Find the Duplicate Number Medium289 Game of Life Medium300 Longest Increasing Subsequence Medium303 Range Sum Query - Immutable Easy304 Range Sum Query 2D - Immutable Medium307 Range Sum Query - Mutable Medium309 Best Time to Buy and Sell Stock with Cooldown Medium312 Burst Balloons Hard313 Super Ugly Number Medium315 Count of Smaller Numbers After Self Hard318 Maximum Product of Word Lengths Medium321 Create Maximum Number Hard322 Coin Change Medium324 Wiggle Sort II Medium327 Count of Range Sum Hard329 Longest Increasing Path in a Matrix Hard330 Patching Array Hard334 Increasing Triplet Subsequence Medium335 Self Crossing Hard336 Palindrome Pairs Hard347 Top K Frequent Elements Medium349 Intersection of Two Arrays Easy350 Intersection of Two Arrays II Easy354 Russian Doll Envelopes Hard363 Max Sum of Rectangle No Larger Than K Hard368 Largest Divisible Subset Medium373 Find K Pairs with Smallest Sums Medium376 Wiggle Subsequence Medium377 Combination Sum IV Medium378 Kth Smallest Element in a Sorted Matrix Medium380 Insert Delete GetRandom O(1) Medium381 Insert Delete GetRandom O(1) - Duplicates allowed Hard384 Shuffle an Array Medium391 Perfect Rectangle Hard393 UTF-8 Validation Medium396 Rotate Function Medium399 Evaluate Division Medium403 Frog Jump Hard406 Queue Reconstruction by Height Medium407 Trapping Rain Water II Hard410 Split Array Largest Sum Hard413 Arithmetic Slices Medium414 Third Maximum Number Easy416 Partition Equal Subset Sum Medium417 Pacific Atlantic Water Flow Medium419 Battleships in a Board Medium421 Maximum XOR of Two Numbers in an Array Medium427 Construct Quad Tree Medium435 Non-overlapping Intervals Medium442 Find All Duplicates in an Array Medium446 Arithmetic Slices II - Subsequence Hard447 Number of Boomerangs Medium448 Find All Numbers Disappeared in an Array Easy452 Minimum Number of Arrows to Burst Balloons Medium453 Minimum Moves to Equal Array Elements Medium454 4Sum II Medium455 Assign Cookies Easy456 132 Pattern Medium457 Circular Array Loop Medium462 Minimum Moves to Equal Array Elements II Medium463 Island Perimeter Easy472 Concatenated Words Hard473 Matchsticks to Square Medium474 Ones and Zeroes Medium475 Heaters Medium477 Total Hamming Distance Medium480 Sliding Window Median Hard485 Max Consecutive Ones Easy486 Predict the Winner Medium491 Non-decreasing Subsequences Medium493 Reverse Pairs Hard494 Target Sum Medium495 Teemo Attacking Easy496 Next Greater Element I Easy497 Random Point in Non-overlapping Rectangles Medium498 Diagonal Traverse Medium500 Keyboard Row Easy502 IPO Hard503 Next Greater Element II Medium506 Relative Ranks Easy517 Super Washing Machines Hard518 Coin Change II Medium522 Longest Uncommon Subsequence II Medium523 Continuous Subarray Sum Medium524 Longest Word in Dictionary through Deleting Medium525 Contiguous Array Medium526 Beautiful Arrangement Medium528 Random Pick with Weight Medium529 Minesweeper Medium532 K-diff Pairs in an Array Medium539 Minimum Time Difference Medium540 Single Element in a Sorted Array Medium542 01 Matrix Medium546 Remove Boxes Hard553 Optimal Division Medium554 Brick Wall Medium560 Subarray Sum Equals K Medium561 Array Partition Easy565 Array Nesting Medium566 Reshape the Matrix Easy575 Distribute Candies Easy581 Shortest Unsorted Continuous Subarray Medium587 Erect the Fence Hard594 Longest Harmonious Subsequence Easy598 Range Addition II Easy599 Minimum Index Sum of Two Lists Easy605 Can Place Flowers Easy609 Find Duplicate File in System Medium611 Valid Triangle Number Medium621 Task Scheduler Medium622 Design Circular Queue Medium624 Maximum Distance in Arrays Medium628 Maximum Product of Three Numbers Easy630 Course Schedule III Hard632 Smallest Range Covering Elements from K Lists Hard636 Exclusive Time of Functions Medium638 Shopping Offers Medium641 Design Circular Deque Medium643 Maximum Average Subarray I Easy645 Set Mismatch Easy646 Maximum Length of Pair Chain Medium648 Replace Words Medium654 Maximum Binary Tree Medium658 Find K Closest Elements Medium659 Split Array into Consecutive Subsequences Medium661 Image Smoother Easy665 Non-decreasing Array Medium667 Beautiful Arrangement II Medium673 Number of Longest Increasing Subsequence Medium674 Longest Continuous Increasing Subsequence Easy675 Cut Off Trees for Golf Event Hard679 24 Game Hard682 Baseball Game Easy689 Maximum Sum of 3 Non-Overlapping Subarrays Hard690 Employee Importance Medium691 Stickers to Spell Word Hard692 Top K Frequent Words Medium695 Max Area of Island Medium697 Degree of an Array Easy698 Partition to K Equal Sum Subsets Medium699 Falling Squares Hard704 Binary Search Easy705 Design HashSet Easy706 Design HashMap Easy710 Random Pick with Blacklist Hard713 Subarray Product Less Than K Medium714 Best Time to Buy and Sell Stock with Transaction Fee Medium717 1-bit and 2-bit Characters Easy718 Maximum Length of Repeated Subarray Medium719 Find K-th Smallest Pair Distance Hard720 Longest Word in Dictionary Medium721 Accounts Merge Medium722 Remove Comments Medium724 Find Pivot Index Easy729 My Calendar I Medium731 My Calendar II Medium733 Flood Fill Easy735 Asteroid Collision Medium739 Daily Temperatures Medium740 Delete and Earn Medium741 Cherry Pickup Hard744 Find Smallest Letter Greater Than Target Easy745 Prefix and Suffix Search Hard746 Min Cost Climbing Stairs Easy747 Largest Number At Least Twice of Others Easy748 Shortest Completing Word Easy749 Contain Virus Hard752 Open the Lock Medium757 Set Intersection Size At Least Two Hard764 Largest Plus Sign Medium766 Toeplitz Matrix Easy768 Max Chunks To Make Sorted II Hard769 Max Chunks To Make Sorted Medium773 Sliding Puzzle Hard775 Global and Local Inversions Medium778 Swim in Rising Water Hard781 Rabbits in Forest Medium782 Transform to Chessboard Hard786 K-th Smallest Prime Fraction Medium789 Escape The Ghosts Medium792 Number of Matching Subsequences Medium794 Valid Tic-Tac-Toe State Medium795 Number of Subarrays with Bounded Maximum Medium798 Smallest Rotation with Highest Score Hard801 Minimum Swaps To Make Sequences Increasing Hard803 Bricks Falling When Hit Hard804 Unique Morse Code Words Easy805 Split Array With Same Average Hard806 Number of Lines To Write String Easy807 Max Increase to Keep City Skyline Medium809 Expressive Words Medium810 Chalkboard XOR Game Hard811 Subdomain Visit Count Medium812 Largest Triangle Area Easy813 Largest Sum of Averages Medium815 Bus Routes Hard817 Linked List Components Medium819 Most Common Word Easy820 Short Encoding of Words Medium821 Shortest Distance to a Character Easy822 Card Flipping Game Medium823 Binary Trees With Factors Medium825 Friends Of Appropriate Ages Medium826 Most Profit Assigning Work Medium827 Making A Large Island Hard832 Flipping an Image Easy833 Find And Replace in String Medium835 Image Overlap Medium839 Similar String Groups Hard840 Magic Squares In Grid Medium843 Guess the Word Hard845 Longest Mountain in Array Medium846 Hand of Straights Medium848 Shifting Letters Medium849 Maximize Distance to Closest Person Medium850 Rectangle Area II Hard851 Loud and Rich Medium852 Peak Index in a Mountain Array Medium853 Car Fleet Medium857 Minimum Cost to Hire K Workers Hard860 Lemonade Change Easy861 Score After Flipping Matrix Medium862 Shortest Subarray with Sum at Least K Hard864 Shortest Path to Get All Keys Hard867 Transpose Matrix Easy870 Advantage Shuffle Medium871 Minimum Number of Refueling Stops Hard873 Length of Longest Fibonacci Subsequence Medium874 Walking Robot Simulation Medium875 Koko Eating Bananas Medium877 Stone Game Medium879 Profitable Schemes Hard881 Boats to Save People Medium883 Projection Area of 3D Shapes Easy885 Spiral Matrix III Medium888 Fair Candy Swap Easy889 Construct Binary Tree from Preorder and Postorder Traversal Medium890 Find and Replace Pattern Medium891 Sum of Subsequence Widths Hard892 Surface Area of 3D Shapes Easy893 Groups of Special-Equivalent Strings Medium896 Monotonic Array Easy898 Bitwise ORs of Subarrays Medium900 RLE Iterator Medium902 Numbers At Most N Given Digit Set Hard904 Fruit Into Baskets Medium905 Sort Array By Parity Easy907 Sum of Subarray Minimums Medium908 Smallest Range I Easy909 Snakes and Ladders Medium910 Smallest Range II Medium911 Online Election Medium912 Sort an Array Medium914 X of a Kind in a Deck of Cards Easy915 Partition Array into Disjoint Intervals Medium916 Word Subsets Medium918 Maximum Sum Circular Subarray Medium922 Sort Array By Parity II Easy923 3Sum With Multiplicity Medium924 Minimize Malware Spread Hard927 Three Equal Parts Hard928 Minimize Malware Spread II Hard929 Unique Email Addresses Easy930 Binary Subarrays With Sum Medium931 Minimum Falling Path Sum Medium932 Beautiful Array Medium934 Shortest Bridge Medium937 Reorder Data in Log Files Medium939 Minimum Area Rectangle Medium941 Valid Mountain Array Easy942 DI String Match Easy943 Find the Shortest Superstring Hard944 Delete Columns to Make Sorted Easy945 Minimum Increment to Make Array Unique Medium946 Validate Stack Sequences Medium948 Bag of Tokens Medium949 Largest Time for Given Digits Medium950 Reveal Cards In Increasing Order Medium952 Largest Component Size by Common Factor Hard953 Verifying an Alien Dictionary Easy954 Array of Doubled Pairs Medium955 Delete Columns to Make Sorted II Medium956 Tallest Billboard Hard957 Prison Cells After N Days Medium959 Regions Cut By Slashes Medium960 Delete Columns to Make Sorted III Hard961 N-Repeated Element in Size 2N Array Easy962 Maximum Width Ramp Medium963 Minimum Area Rectangle II Medium966 Vowel Spellchecker Medium969 Pancake Sorting Medium973 K Closest Points to Origin Medium974 Subarray Sums Divisible by K Medium975 Odd Even Jump Hard976 Largest Perimeter Triangle Easy977 Squares of a Sorted Array Easy978 Longest Turbulent Subarray Medium980 Unique Paths III Hard982 Triples with Bitwise AND Equal To Zero Hard983 Minimum Cost For Tickets Medium985 Sum of Even Numbers After Queries Medium986 Interval List Intersections Medium989 Add to Array-Form of Integer Easy990 Satisfiability of Equality Equations Medium992 Subarrays with K Different Integers Hard994 Rotting Oranges Medium995 Minimum Number of K Consecutive Bit Flips Hard996 Number of Squareful Arrays Hard997 Find the Town Judge Easy999 Available Captures for Rook Easy1000 Minimum Cost to Merge Stones Hard1001 Grid Illumination Hard1002 Find Common Characters Easy1004 Max Consecutive Ones III Medium1005 Maximize Sum Of Array After K Negations Easy1007 Minimum Domino Rotations For Equal Row Medium1008 Construct Binary Search Tree from Preorder Traversal Medium1010 Pairs of Songs With Total Durations Divisible by 60 Medium1011 Capacity To Ship Packages Within D Days Medium1013 Partition Array Into Three Parts With Equal Sum Easy1014 Best Sightseeing Pair Medium1018 Binary Prefix Divisible By 5 Easy1019 Next Greater Node In Linked List Medium1020 Number of Enclaves Medium1023 Camelcase Matching Medium1024 Video Stitching Medium1027 Longest Arithmetic Subsequence Medium1029 Two City Scheduling Medium1030 Matrix Cells in Distance Order Easy1031 Maximum Sum of Two Non-Overlapping Subarrays Medium1032 Stream of Characters Hard1034 Coloring A Border Medium1035 Uncrossed Lines Medium1036 Escape a Large Maze Hard1037 Valid Boomerang Easy1039 Minimum Score Triangulation of Polygon Medium1040 Moving Stones Until Consecutive II Medium1043 Partition Array for Maximum Sum Medium1046 Last Stone Weight Easy1048 Longest String Chain Medium1049 Last Stone Weight II Medium1051 Height Checker Easy1052 Grumpy Bookstore Owner Medium1053 Previous Permutation With One Swap Medium1054 Distant Barcodes Medium1072 Flip Columns For Maximum Number of Equal Rows Medium1073 Adding Two Negabinary Numbers Medium1074 Number of Submatrices That Sum to Target Hard1089 Duplicate Zeros Easy1090 Largest Values From Labels Medium1091 Shortest Path in Binary Matrix Medium1093 Statistics from a Large Sample Medium1094 Car Pooling Medium1095 Find in Mountain Array Hard1105 Filling Bookcase Shelves Medium1109 Corporate Flight Bookings Medium1110 Delete Nodes And Return Forest Medium1122 Relative Sort Array Easy1124 Longest Well-Performing Interval Medium1125 Smallest Sufficient Team Hard1128 Number of Equivalent Domino Pairs Easy1130 Minimum Cost Tree From Leaf Values Medium1131 Maximum of Absolute Value Expression Medium1139 Largest 1-Bordered Square Medium1140 Stone Game II Medium1144 Decrease Elements To Make Array Zigzag Medium1146 Snapshot Array Medium1157 Online Majority Element In Subarray Hard1160 Find Words That Can Be Formed by Characters Easy1162 As Far from Land as Possible Medium1169 Invalid Transactions Medium1170 Compare Strings by Frequency of the Smallest Character Medium1177 Can Make Palindrome from Substring Medium1178 Number of Valid Words for Each Puzzle Hard1184 Distance Between Bus Stops Easy1186 Maximum Subarray Sum with One Deletion Medium1187 Make Array Strictly Increasing Hard1191 K-Concatenation Maximum Sum Medium1200 Minimum Absolute Difference Easy1202 Smallest String With Swaps Medium1207 Unique Number of Occurrences Easy1210 Minimum Moves to Reach Target with Rotations Hard1217 Minimum Cost to Move Chips to The Same Position Easy1218 Longest Arithmetic Subsequence of Given Difference Medium1219 Path with Maximum Gold Medium1222 Queens That Can Attack the King Medium1223 Dice Roll Simulation Hard1224 Maximum Equal Frequency Hard1232 Check If It Is a Straight Line Easy1233 Remove Sub-Folders from the Filesystem Medium1235 Maximum Profit in Job Scheduling Hard1239 Maximum Length of a Concatenated String with Unique Characters Medium1248 Count Number of Nice Subarrays Medium1250 Check If It Is a Good Array Hard1252 Cells with Odd Values in a Matrix Easy1253 Reconstruct a 2-Row Binary Matrix Medium1254 Number of Closed Islands Medium1255 Maximum Score Words Formed by Letters Hard1260 Shift 2D Grid Easy1262 Greatest Sum Divisible by Three Medium1263 Minimum Moves to Move a Box to Their Target Location Hard1266 Minimum Time Visiting All Points Easy1267 Count Servers that Communicate Medium1268 Search Suggestions System Medium1275 Find Winner on a Tic Tac Toe Game Easy1277 Count Square Submatrices with All Ones Medium1282 Group the People Given the Group Size They Belong To Medium1283 Find the Smallest Divisor Given a Threshold Medium1284 Minimum Number of Flips to Convert Binary Matrix to Zero Matrix Hard1287 Element Appearing More Than 25% In Sorted Array Easy1288 Remove Covered Intervals Medium1289 Minimum Falling Path Sum II Hard1292 Maximum Side Length of a Square with Sum Less than or Equal to Threshold Medium1293 Shortest Path in a Grid with Obstacles Elimination Hard1295 Find Numbers with Even Number of Digits Easy1296 Divide Array in Sets of K Consecutive Numbers Medium1298 Maximum Candies You Can Get from Boxes Hard1299 Replace Elements with Greatest Element on Right Side Easy1300 Sum of Mutated Array Closest to Target Medium1301 Number of Paths with Max Score Hard1304 Find N Unique Integers Sum up to Zero Easy1306 Jump Game III Medium1307 Verbal Arithmetic Puzzle Hard1310 XOR Queries of a Subarray Medium1311 Get Watched Videos by Your Friends Medium1313 Decompress Run-Length Encoded List Easy1314 Matrix Block Sum Medium1324 Print Words Vertically Medium1326 Minimum Number of Taps to Open to Water a Garden Hard1329 Sort the Matrix Diagonally Medium1330 Reverse Subarray To Maximize Array Value Hard1331 Rank Transform of an Array Easy1333 Filter Restaurants by Vegan-Friendly, Price and Distance Medium1335 Minimum Difficulty of a Job Schedule Hard1337 The K Weakest Rows in a Matrix Easy1338 Reduce Array Size to The Half Medium1340 Jump Game V Hard1343 Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold Medium1345 Jump Game IV Hard1346 Check If N and Its Double Exist Easy1349 Maximum Students Taking Exam Hard1351 Count Negative Numbers in a Sorted Matrix Easy1352 Product of the Last K Numbers Medium1353 Maximum Number of Events That Can Be Attended Medium1354 Construct Target Array With Multiple Sums Hard1356 Sort Integers by The Number of 1 Bits Easy1357 Apply Discount Every n Orders Medium1363 Largest Multiple of Three Hard1365 How Many Numbers Are Smaller Than the Current Number Easy1366 Rank Teams by Votes Medium1368 Minimum Cost to Make at Least One Valid Path in a Grid Hard1375 Number of Times Binary String Is Prefix-Aligned Medium1380 Lucky Numbers in a Matrix Easy1381 Design a Stack With Increment Operation Medium1383 Maximum Performance of a Team Hard1385 Find the Distance Value Between Two Arrays Easy1386 Cinema Seat Allocation Medium1388 Pizza With 3n Slices Hard1389 Create Target Array in the Given Order Easy1390 Four Divisors Medium1391 Check if There is a Valid Path in a Grid Medium1394 Find Lucky Integer in an Array Easy1395 Count Number of Teams Medium1402 Reducing Dishes Hard1403 Minimum Subsequence in Non-Increasing Order Easy1406 Stone Game III Hard1408 String Matching in an Array Easy1409 Queries on a Permutation With Key Medium1413 Minimum Value to Get Positive Step by Step Sum Easy1418 Display Table of Food Orders in a Restaurant Medium1423 Maximum Points You Can Obtain from Cards Medium1424 Diagonal Traverse II Medium1425 Constrained Subsequence Sum Hard1431 Kids With the Greatest Number of Candies Easy1434 Number of Ways to Wear Different Hats to Each Other Hard1436 Destination City Easy1437 Check If All 1's Are at Least Length K Places Away Easy1438 Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit Medium1439 Find the Kth Smallest Sum of a Matrix With Sorted Rows Hard1441 Build an Array With Stack Operations Medium1442 Count Triplets That Can Form Two Arrays of Equal XOR Medium1444 Number of Ways of Cutting a Pizza Hard1449 Form Largest Integer With Digits That Add up to Target Hard1450 Number of Students Doing Homework at a Given Time Easy1452 People Whose List of Favorite Companies Is Not a Subset of Another List Medium1453 Maximum Number of Darts Inside of a Circular Dartboard Hard1458 Max Dot Product of Two Subsequences Hard1460 Make Two Arrays Equal by Reversing Subarrays Easy1463 Cherry Pickup II Hard1464 Maximum Product of Two Elements in an Array Easy1465 Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts Medium1467 Probability of a Two Boxes Having The Same Number of Distinct Balls Hard1470 Shuffle the Array Easy1471 The k Strongest Values in an Array Medium1472 Design Browser History Medium1473 Paint House III Hard1475 Final Prices With a Special Discount in a Shop Easy1476 Subrectangle Queries Medium1477 Find Two Non-overlapping Sub-arrays Each With Target Sum Medium1478 Allocate Mailboxes Hard1480 Running Sum of 1d Array Easy1481 Least Number of Unique Integers after K Removals Medium1482 Minimum Number of Days to Make m Bouquets Medium1487 Making File Names Unique Medium1488 Avoid Flood in The City Medium1491 Average Salary Excluding the Minimum and Maximum Salary Easy1493 Longest Subarray of 1's After Deleting One Element Medium1497 Check If Array Pairs Are Divisible by k Medium1498 Number of Subsequences That Satisfy the Given Sum Condition Medium1499 Max Value of Equation Hard1502 Can Make Arithmetic Progression From Sequence Easy1503 Last Moment Before All Ants Fall Out of a Plank Medium1504 Count Submatrices With All Ones Medium1508 Range Sum of Sorted Subarray Sums Medium1509 Minimum Difference Between Largest and Smallest Value in Three Moves Medium1512 Number of Good Pairs Easy1514 Path with Maximum Probability Medium1515 Best Position for a Service Centre Hard1521 Find a Value of a Mysterious Function Closest to Target Hard1524 Number of Sub-arrays With Odd Sum Medium1526 Minimum Number of Increments on Subarrays to Form a Target Array Hard1528 Shuffle String Easy1534 Count Good Triplets Easy1535 Find the Winner of an Array Game Medium1536 Minimum Swaps to Arrange a Binary Grid Medium1537 Get the Maximum Score Hard1539 Kth Missing Positive Number Easy1546 Maximum Number of Non-Overlapping Subarrays With Sum Equals Target Medium1547 Minimum Cost to Cut a Stick Hard1550 Three Consecutive Odds Easy1552 Magnetic Force Between Two Balls Medium1558 Minimum Numbers of Function Calls to Make Target Array Medium1559 Detect Cycles in 2D Grid Medium1560 Most Visited Sector in a Circular Track Easy1561 Maximum Number of Coins You Can Get Medium1562 Find Latest Group of Size M Medium1563 Stone Game V Hard1566 Detect Pattern of Length M Repeated K or More Times Easy1567 Maximum Length of Subarray With Positive Product Medium1568 Minimum Number of Days to Disconnect Island Hard1569 Number of Ways to Reorder Array to Get Same BST Hard1572 Matrix Diagonal Sum Easy1574 Shortest Subarray to be Removed to Make Array Sorted Medium1575 Count All Possible Routes Hard1577 Number of Ways Where Square of Number Is Equal to Product of Two Numbers Medium1578 Minimum Time to Make Rope Colorful Medium1582 Special Positions in a Binary Matrix Easy1583 Count Unhappy Friends Medium1584 Min Cost to Connect All Points Medium1588 Sum of All Odd Length Subarrays Easy1589 Maximum Sum Obtained of Any Permutation Medium1590 Make Sum Divisible by P Medium1591 Strange Printer II Hard1594 Maximum Non Negative Product in a Matrix Medium1595 Minimum Cost to Connect Two Groups of Points Hard1598 Crawler Log Folder Easy1599 Maximum Profit of Operating a Centennial Wheel Medium1601 Maximum Number of Achievable Transfer Requests Hard1604 Alert Using Same Key-Card Three or More Times in a One Hour Period Medium1605 Find Valid Matrix Given Row and Column Sums Medium1606 Find Servers That Handled Most Number of Requests Hard1608 Special Array With X Elements Greater Than or Equal X Easy1610 Maximum Number of Visible Points Hard1619 Mean of Array After Removing Some Elements Easy1620 Coordinate With Maximum Network Quality Medium1626 Best Team With No Conflicts Medium1627 Graph Connectivity With Threshold Hard1629 Slowest Key Easy1630 Arithmetic Subarrays Medium1631 Path With Minimum Effort Medium1632 Rank Transform of a Matrix Hard1636 Sort Array by Increasing Frequency Easy1637 Widest Vertical Area Between Two Points Containing No Points Easy1639 Number of Ways to Form a Target String Given a Dictionary Hard1640 Check Array Formation Through Concatenation Easy1642 Furthest Building You Can Reach Medium1643 Kth Smallest Instructions Hard1646 Get Maximum in Generated Array Easy1648 Sell Diminishing-Valued Colored Balls Medium1649 Create Sorted Array through Instructions Hard1652 Defuse the Bomb Easy1654 Minimum Jumps to Reach Home Medium1655 Distribute Repeating Integers Hard1656 Design an Ordered Stream Easy1658 Minimum Operations to Reduce X to Zero Medium1662 Check If Two String Arrays are Equivalent Easy1664 Ways to Make a Fair Array Medium1665 Minimum Initial Energy to Finish Tasks Hard1670 Design Front Middle Back Queue Medium1671 Minimum Number of Removals to Make Mountain Array Hard1672 Richest Customer Wealth Easy1673 Find the Most Competitive Subsequence Medium1674 Minimum Moves to Make Array Complementary Medium1675 Minimize Deviation in Array Hard1679 Max Number of K-Sum Pairs Medium1681 Minimum Incompatibility Hard1684 Count the Number of Consistent Strings Easy1685 Sum of Absolute Differences in a Sorted Array Medium1686 Stone Game VI Medium1687 Delivering Boxes from Storage to Ports Hard1690 Stone Game VII Medium1691 Maximum Height by Stacking Cuboids Hard1695 Maximum Erasure Value Medium1696 Jump Game VI Medium1697 Checking Existence of Edge Length Limited Paths Hard1700 Number of Students Unable to Eat Lunch Easy1701 Average Waiting Time Medium1703 Minimum Adjacent Swaps for K Consecutive Ones Hard1705 Maximum Number of Eaten Apples Medium1706 Where Will the Ball Fall Medium1707 Maximum XOR With an Element From Array Hard1710 Maximum Units on a Truck Easy1711 Count Good Meals Medium1712 Ways to Split Array Into Three Subarrays Medium1713 Minimum Operations to Make a Subsequence Hard1718 Construct the Lexicographically Largest Valid Sequence Medium1720 Decode XORed Array Easy1722 Minimize Hamming Distance After Swap Operations Medium1723 Find Minimum Time to Finish All Jobs Hard1725 Number Of Rectangles That Can Form The Largest Square Easy1726 Tuple with Same Product Medium1727 Largest Submatrix With Rearrangements Medium1728 Cat and Mouse II Hard1732 Find the Highest Altitude Easy1733 Minimum Number of People to Teach Medium1734 Decode XORed Permutation Medium1735 Count Ways to Make Array With Product Hard1738 Find Kth Largest XOR Coordinate Value Medium1743 Restore the Array From Adjacent Pairs Medium1744 Can You Eat Your Favorite Candy on Your Favorite Day? Medium1748 Sum of Unique Elements Easy1749 Maximum Absolute Sum of Any Subarray Medium1751 Maximum Number of Events That Can Be Attended II Hard1752 Check if Array Is Sorted and Rotated Easy1755 Closest Subsequence Sum Hard1760 Minimum Limit of Balls in a Bag Medium1764 Form Array by Concatenating Subarrays of Another Array Medium1765 Map of Highest Peak Medium1766 Tree of Coprimes Hard1769 Minimum Number of Operations to Move All Balls to Each Box Medium1770 Maximum Score from Performing Multiplication Operations Hard1773 Count Items Matching a Rule Easy1774 Closest Dessert Cost Medium1775 Equal Sum Arrays With Minimum Number of Operations Medium1776 Car Fleet II Hard1779 Find Nearest Point That Has the Same X or Y Coordinate Easy1782 Count Pairs Of Nodes Hard1785 Minimum Elements to Add to Form a Given Sum Medium1787 Make the XOR of All Segments Equal to Zero Hard1792 Maximum Average Pass Ratio Medium1793 Maximum Score of a Good Subarray Hard1798 Maximum Number of Consecutive Values You Can Make Medium1799 Maximize Score After N Operations Hard1800 Maximum Ascending Subarray Sum Easy1801 Number of Orders in the Backlog Medium1803 Count Pairs With XOR in a Range Hard1806 Minimum Number of Operations to Reinitialize a Permutation Medium1807 Evaluate the Bracket Pairs of a String Medium1813 Sentence Similarity III Medium1814 Count Nice Pairs in an Array Medium1815 Maximum Number of Groups Getting Fresh Donuts Hard1816 Truncate Sentence Easy1817 Finding the Users Active Minutes Medium1818 Minimum Absolute Sum Difference Medium1819 Number of Different Subsequences GCDs Hard1822 Sign of the Product of an Array Easy1823 Find the Winner of the Circular Game Medium1824 Minimum Sideway Jumps Medium1827 Minimum Operations to Make the Array Increasing Easy1828 Queries on Number of Points Inside a Circle Medium1829 Maximum XOR for Each Query Medium1833 Maximum Ice Cream Bars Medium1834 Single-Threaded CPU Medium1835 Find XOR Sum of All Pairs Bitwise AND Hard1838 Frequency of the Most Frequent Element Medium1840 Maximum Building Height Hard1846 Maximum Element After Decreasing and Rearranging Medium1847 Closest Room Hard1848 Minimum Distance to the Target Element Easy1851 Minimum Interval to Include Each Query Hard1854 Maximum Population Year Easy1855 Maximum Distance Between a Pair of Values Medium1856 Maximum Subarray Min-Product Medium1861 Rotating the Box Medium1862 Sum of Floored Pairs Hard1863 Sum of All Subset XOR Totals Easy1865 Finding Pairs With a Certain Sum Medium1870 Minimum Speed to Arrive on Time Medium1872 Stone Game VIII Hard1877 Minimize Maximum Pair Sum in Array Medium1878 Get Biggest Three Rhombus Sums in a Grid Medium1879 Minimum XOR Sum of Two Arrays Hard1882 Process Tasks Using Servers Medium1883 Minimum Skips to Arrive at Meeting On Time Hard1886 Determine Whether Matrix Can Be Obtained By Rotation Easy1887 Reduction Operations to Make the Array Elements Equal Medium1889 Minimum Space Wasted From Packaging Hard1893 Check if All the Integers in a Range Are Covered Easy1894 Find the Student that Will Replace the Chalk Medium1895 Largest Magic Square Medium1898 Maximum Number of Removable Characters Medium1899 Merge Triplets to Form Target Triplet Medium1901 Find a Peak Element II Medium1905 Count Sub Islands Medium1906 Minimum Absolute Difference Queries Medium1909 Remove One Element to Make the Array Strictly Increasing Easy1911 Maximum Alternating Subsequence Sum Medium1912 Design Movie Rental System Hard1913 Maximum Product Difference Between Two Pairs Easy1914 Cyclically Rotating a Grid Medium1920 Build Array from Permutation Easy1921 Eliminate Maximum Number of Monsters Medium1923 Longest Common Subpath Hard1926 Nearest Exit from Entrance in Maze Medium1928 Minimum Cost to Reach Destination in Time Hard1929 Concatenation of Array Easy1936 Add Minimum Number of Rungs Medium1937 Maximum Number of Points with Cost Medium1938 Maximum Genetic Difference Query Hard1942 The Number of the Smallest Unoccupied Chair Medium1943 Describe the Painting Medium1944 Number of Visible People in a Queue Hard1946 Largest Number After Mutating Substring Medium1947 Maximum Compatibility Score Sum Medium1948 Delete Duplicate Folders in System Hard1953 Maximum Number of Weeks for Which You Can Work Medium1955 Count Number of Special Subsequences Hard1958 Check if Move is Legal Medium1959 Minimum Total Space Wasted With K Resizing Operations Medium1961 Check If String Is a Prefix of Array Easy1962 Remove Stones to Minimize the Total Medium1964 Find the Longest Valid Obstacle Course at Each Position Hard1967 Number of Strings That Appear as Substrings in Word Easy1968 Array With Elements Not Equal to Average of Neighbors Medium1970 Last Day Where You Can Still Cross Hard1975 Maximum Matrix Sum Medium1979 Find Greatest Common Divisor of Array Easy1980 Find Unique Binary String Medium1981 Minimize the Difference Between Target and Chosen Elements Medium1982 Find Array Given Subset Sums Hard1984 Minimum Difference Between Highest and Lowest of K Scores Easy1985 Find the Kth Largest Integer in the Array Medium1986 Minimum Number of Work Sessions to Finish the Tasks Medium1991 Find the Middle Index in Array Easy1992 Find All Groups of Farmland Medium1993 Operations on Tree Medium1994 The Number of Good Subsets Hard1995 Count Special Quadruplets Easy1996 The Number of Weak Characters in the Game Medium1997 First Day Where You Have Been in All the Rooms Medium1998 GCD Sort of an Array Hard2001 Number of Pairs of Interchangeable Rectangles Medium2006 Count Number of Pairs With Absolute Difference K Easy2007 Find Original Array From Doubled Array Medium2008 Maximum Earnings From Taxi Medium2009 Minimum Number of Operations to Make Array Continuous Hard2011 Final Value of Variable After Performing Operations Easy2012 Sum of Beauty in the Array Medium2013 Detect Squares Medium2016 Maximum Difference Between Increasing Elements Easy2017 Grid Game Medium2018 Check if Word Can Be Placed In Crossword Medium2019 The Score of Students Solving Math Expression Hard2022 Convert 1D Array Into 2D Array Easy2023 Number of Pairs of Strings With Concatenation Equal to Target Medium2025 Maximum Number of Ways to Partition an Array Hard2028 Find Missing Observations Medium2029 Stone Game IX Medium2032 Two Out of Three Easy2033 Minimum Operations to Make a Uni-Value Grid Medium2035 Partition Array Into Two Arrays to Minimize Sum Difference Hard2037 Minimum Number of Moves to Seat Everyone Easy2039 The Time When the Network Becomes Idle Medium2040 Kth Smallest Product of Two Sorted Arrays Hard2043 Simple Bank System Medium2044 Count Number of Maximum Bitwise-OR Subsets Medium2049 Count Nodes With the Highest Score Medium2050 Parallel Courses III Hard2053 Kth Distinct String in an Array Easy2054 Two Best Non-Overlapping Events Medium2055 Plates Between Candles Medium2056 Number of Valid Move Combinations On Chessboard Hard2057 Smallest Index With Equal Value Easy2059 Minimum Operations to Convert Number Medium2064 Minimized Maximum of Products Distributed to Any Store Medium2065 Maximum Path Quality of a Graph Hard2070 Most Beautiful Item for Each Query Medium2071 Maximum Number of Tasks You Can Assign Hard2073 Time Needed to Buy Tickets Easy2078 Two Furthest Houses With Different Colors Easy2079 Watering Plants Medium2080 Range Frequency Queries Medium2085 Count Common Words With One Occurrence Easy2087 Minimum Cost Homecoming of a Robot in a Grid Medium2088 Count Fertile Pyramids in a Land Hard2089 Find Target Indices After Sorting Array Easy2090 K Radius Subarray Averages Medium2091 Removing Minimum and Maximum From Array Medium2094 Finding 3-Digit Even Numbers Easy2099 Find Subsequence of Length K With the Largest Sum Easy2100 Find Good Days to Rob the Bank Medium2101 Detonate the Maximum Bombs Medium2104 Sum of Subarray Ranges Medium2105 Watering Plants II Medium2106 Maximum Fruits Harvested After at Most K Steps Hard2108 Find First Palindromic String in the Array Easy2109 Adding Spaces to a String Medium2110 Number of Smooth Descent Periods of a Stock Medium2111 Minimum Operations to Make the Array K-Increasing Hard2114 Maximum Number of Words Found in Sentences Easy2115 Find All Possible Recipes from Given Supplies Medium2121 Intervals Between Identical Elements Medium2122 Recover the Original Array Hard2125 Number of Laser Beams in a Bank Medium2126 Destroying Asteroids Medium2131 Longest Palindrome by Concatenating Two Letter Words Medium2132 Stamping the Grid Hard2133 Check if Every Row and Column Contains All Numbers Easy2134 Minimum Swaps to Group All 1's Together II Medium2135 Count Words Obtained After Adding a Letter Medium2136 Earliest Possible Day of Full Bloom Hard2140 Solving Questions With Brainpower Medium2141 Maximum Running Time of N Computers Hard2144 Minimum Cost of Buying Candies With Discount Easy2145 Count the Hidden Sequences Medium2146 K Highest Ranked Items Within a Price Range Medium2148 Count Elements With Strictly Smaller and Greater Elements Easy2149 Rearrange Array Elements by Sign Medium2150 Find All Lonely Numbers in the Array Medium2151 Maximum Good People Based on Statements Hard2154 Keep Multiplying Found Values by Two Easy2155 All Divisions With the Highest Score of a Binary Array Medium2161 Partition Array According to Given Pivot Medium2163 Minimum Difference in Sums After Removal of Elements Hard2164 Sort Even and Odd Indices Independently Easy2166 Design Bitset Medium2170 Minimum Operations to Make the Array Alternating Medium2171 Removing Minimum Number of Magic Beans Medium2172 Maximum AND Sum of Array Hard2176 Count Equal and Divisible Pairs in an Array Easy2179 Count Good Triplets in an Array Hard2183 Count Array Pairs Divisible by K Hard2185 Counting Words With a Given Prefix Easy2187 Minimum Time to Complete Trips Medium2188 Minimum Time to Finish the Race Hard2190 Most Frequent Number Following Key In an Array Easy2191 Sort the Jumbled Numbers Medium2195 Append K Integers With Minimal Sum Medium2196 Create Binary Tree From Descriptions Medium2197 Replace Non-Coprime Numbers in Array Hard2200 Find All K-Distant Indices in an Array Easy2201 Count Artifacts That Can Be Extracted Medium2202 Maximize the Topmost Element After K Moves Medium2206 Divide Array Into Equal Pairs Easy2208 Minimum Operations to Halve Array Sum Medium2210 Count Hills and Valleys in an Array Easy2212 Maximum Points in an Archery Competition Medium2213 Longest Substring of One Repeating Character Hard2215 Find the Difference of Two Arrays Easy2216 Minimum Deletions to Make Array Beautiful Medium2217 Find Palindrome With Fixed Length Medium2218 Maximum Value of K Coins From Piles Hard2221 Find Triangular Sum of an Array Medium2225 Find Players With Zero or One Losses Medium2226 Maximum Candies Allocated to K Children Medium2227 Encrypt and Decrypt Strings Hard2233 Maximum Product After K Increments Medium2234 Maximum Total Beauty of the Gardens Hard2239 Find Closest Number to Zero Easy2241 Design an ATM Machine Medium2242 Maximum Score of a Node Sequence Hard2244 Minimum Rounds to Complete All Tasks Medium2245 Maximum Trailing Zeros in a Cornered Path Medium2246 Longest Path With Different Adjacent Characters Hard2248 Intersection of Multiple Arrays Easy2249 Count Lattice Points Inside a Circle Medium2250 Count Number of Rectangles Containing Each Point Medium2251 Number of Flowers in Full Bloom Hard2255 Count Prefixes of a Given String Easy2256 Minimum Average Difference Medium2257 Count Unguarded Cells in the Grid Medium2258 Escape the Spreading Fire Hard2260 Minimum Consecutive Cards to Pick Up Medium2261 K Divisible Elements Subarrays Medium2267 Check if There Is a Valid Parentheses String Path Hard2270 Number of Ways to Split Array Medium2271 Maximum White Tiles Covered by a Carpet Medium2272 Substring With Largest Variance Hard2273 Find Resultant Array After Removing Anagrams Easy2274 Maximum Consecutive Floors Without Special Floors Medium2275 Largest Combination With Bitwise AND Greater Than Zero Medium2279 Maximum Bags With Full Capacity of Rocks Medium2280 Minimum Lines to Represent a Line Chart Medium2281 Sum of Total Strength of Wizards Hard2284 Sender With Largest Word Count Medium2289 Steps to Make Array Non-decreasing Medium2290 Minimum Obstacle Removal to Reach Corner Hard2293 Min Max Game Easy2294 Partition Array Such That Maximum Difference Is K Medium2295 Replace Elements in an Array Medium2300 Successful Pairs of Spells and Potions Medium2301 Match Substring After Replacement Hard2302 Count Subarrays With Score Less Than K Hard2303 Calculate Amount Paid in Taxes Easy2304 Minimum Path Cost in a Grid Medium2305 Fair Distribution of Cookies Medium2306 Naming a Company Hard2312 Selling Pieces of Wood Hard2317 Maximum XOR After Operations Medium2319 Check if Matrix Is X-Matrix Easy2321 Maximum Score Of Spliced Array Hard2322 Minimum Score After Removals on a Tree Hard2326 Spiral Matrix IV Medium2328 Number of Increasing Paths in a Grid Hard2332 The Latest Time to Catch a Bus Medium2333 Minimum Sum of Squared Difference Medium2334 Subarray With Elements Greater Than Varying Threshold Hard2335 Minimum Amount of Time to Fill Cups Easy2341 Maximum Number of Pairs in Array Easy2342 Max Sum of a Pair With Equal Sum of Digits Medium2343 Query Kth Smallest Trimmed Number Medium2344 Minimum Deletions to Make Array Divisible Hard2347 Best Poker Hand Easy2348 Number of Zero-Filled Subarrays Medium2350 Shortest Impossible Sequence of Rolls Hard2352 Equal Row and Column Pairs Medium2353 Design a Food Rating System Medium2354 Number of Excellent Pairs Hard2357 Make Array Zero by Subtracting Equal Amounts Easy2358 Maximum Number of Groups Entering a Competition Medium2363 Merge Similar Items Easy2364 Count Number of Bad Pairs Medium2365 Task Scheduler II Medium2366 Minimum Replacements to Sort the Array Hard2367 Number of Arithmetic Triplets Easy2368 Reachable Nodes With Restrictions Medium2369 Check if There is a Valid Partition For The Array Medium2373 Largest Local Values in a Matrix Easy2381 Shifting Letters II Medium2382 Maximum Segment Sum After Removals Hard2383 Minimum Hours of Training to Win a Competition Easy2386 Find the K-Sum of an Array Hard2389 Longest Subsequence With Limited Sum Easy2391 Minimum Amount of Time to Collect Garbage Medium2392 Build a Matrix With Conditions Hard2395 Find Subarrays With Equal Sum Easy2397 Maximum Rows Covered by Columns Medium2398 Maximum Number of Robots Within Budget Hard2399 Check Distances Between Same Letters Easy2401 Longest Nice Subarray Medium2402 Meeting Rooms III Hard2404 Most Frequent Even Element Easy2406 Divide Intervals Into Minimum Number of Groups Medium2407 Longest Increasing Subsequence II Hard2410 Maximum Matching of Players With Trainers Medium2411 Smallest Subarrays With Maximum Bitwise OR Medium2412 Minimum Money Required Before Transactions Hard2416 Sum of Prefix Scores of Strings Hard2418 Sort the People Easy2419 Longest Subarray With Maximum Bitwise AND Medium2420 Find All Good Indices Medium2421 Number of Good Paths Hard2425 Bitwise XOR of All Pairings Medium2426 Number of Pairs Satisfying Inequality Hard2428 Maximum Sum of an Hourglass Medium2432 The Employee That Worked on the Longest Task Easy2433 Find The Original Array of Prefix Xor Medium2435 Paths in Matrix Whose Sum Is Divisible by K Hard2438 Range Product Queries of Powers Medium2439 Minimize Maximum of Array Medium2440 Create Components With Same Value Hard2441 Largest Positive Integer That Exists With Its Negative Easy2442 Count Number of Distinct Integers After Reverse Operations Medium2444 Count Subarrays With Fixed Bounds Hard2446 Determine if Two Events Have Conflict Easy2447 Number of Subarrays With GCD Equal to K Medium2448 Minimum Cost to Make Array Equal Hard2449 Minimum Number of Operations to Make Arrays Similar Hard2451 Odd String Difference Easy2452 Words Within Two Edits of Dictionary Medium2453 Destroy Sequential Targets Medium2454 Next Greater Element IV Hard2455 Average Value of Even Numbers That Are Divisible by Three Easy2456 Most Popular Video Creator Medium2458 Height of Binary Tree After Subtree Removal Queries Hard2460 Apply Operations to an Array Easy2461 Maximum Sum of Distinct Subarrays With Length K Medium2462 Total Cost to Hire K Workers Medium2463 Minimum Total Distance Traveled Hard2465 Number of Distinct Averages Easy2467 Most Profitable Path in a Tree Medium2470 Number of Subarrays With LCM Equal to K Medium2475 Number of Unequal Triplets in Array Easy2476 Closest Nodes Queries in a Binary Search Tree Medium2482 Difference Between Ones and Zeros in Row and Column Medium2488 Count Subarrays With Median K Hard2491 Divide Players Into Teams of Equal Skill Medium2496 Maximum Value of a String in an Array Easy2497 Maximum Star Sum of a Graph Medium2498 Frog Jump II Medium2499 Minimum Total Cost to Make Arrays Unequal Hard2500 Delete Greatest Value in Each Row Easy2501 Longest Square Streak in an Array Medium2502 Design Memory Allocator Medium2503 Maximum Number of Points From Grid Queries Hard2506 Count Pairs Of Similar Strings Easy2509 Cycle Length Queries in a Tree Hard2511 Maximum Enemy Forts That Can Be Captured Easy2512 Reward Top K Students Medium2515 Shortest Distance to Target String in a Circular Array Easy2517 Maximum Tastiness of Candy Basket Medium2518 Number of Great Partitions Hard2521 Distinct Prime Factors of Product of Array Medium2527 Find Xor-Beauty of Array Medium2528 Maximize the Minimum Powered City Hard2529 Maximum Count of Positive Integer and Negative Integer Easy2530 Maximal Score After Applying K Operations Medium2532 Time to Cross a Bridge Hard2535 Difference Between Element Sum and Digit Sum of an Array Easy2536 Increment Submatrices by One Medium2537 Count the Number of Good Subarrays Medium2538 Difference Between Maximum and Minimum Price Sum Hard2540 Minimum Common Value Easy2541 Minimum Operations to Make Array Equal II Medium2542 Maximum Subsequence Score Medium2545 Sort the Students by Their Kth Score Medium2547 Minimum Cost to Split an Array Hard2549 Count Distinct Numbers on Board Easy2551 Put Marbles in Bags Hard2552 Count Increasing Quadruplets Hard2553 Separate the Digits in an Array Easy2554 Maximum Number of Integers to Choose From a Range I Medium2555 Maximize Win From Two Segments Medium2556 Disconnect Path in a Binary Matrix by at Most One Flip Medium2558 Take Gifts From the Richest Pile Easy2559 Count Vowel Strings in Ranges Medium2560 House Robber IV Medium2561 Rearranging Fruits Hard2562 Find the Array Concatenation Value Easy2563 Count the Number of Fair Pairs Medium2564 Substring XOR Queries Medium2567 Minimum Score by Changing Two Elements Medium2568 Minimum Impossible OR Medium2569 Handling Sum Queries After Update Hard2570 Merge Two 2D Arrays by Summing Values Easy2572 Count the Number of Square-Free Subsets Medium2573 Find the String with LCP Hard2574 Left and Right Sum Differences Easy2575 Find the Divisibility Array of a String Medium2576 Find the Maximum Number of Marked Indices Medium2577 Minimum Time to Visit a Cell In a Grid Hard2580 Count Ways to Group Overlapping Ranges Medium2581 Count Number of Possible Root Nodes Hard2584 Split the Array to Make Coprime Products Hard2585 Number of Ways to Earn Points Hard2586 Count the Number of Vowel Strings in Range Easy2587 Rearrange Array to Maximize Prefix Score Medium2588 Count the Number of Beautiful Subarrays Medium2589 Minimum Time to Complete All Tasks Hard2592 Maximize Greatness of an Array Medium2593 Find Score of an Array After Marking All Elements Medium2594 Minimum Time to Repair Cars Medium2596 Check Knight Tour Configuration Medium2597 The Number of Beautiful Subsets Medium2598 Smallest Missing Non-negative Integer After Operations Medium2601 Prime Subtraction Operation Medium2602 Minimum Operations to Make All Array Elements Equal Medium2603 Collect Coins in a Tree Hard2605 Form Smallest Number From Two Digit Arrays Easy2606 Find the Substring With Maximum Cost Medium2607 Make K-Subarray Sums Equal Medium2610 Convert an Array Into a 2D Array With Conditions Medium2611 Mice and Cheese Medium2612 Minimum Reverse Operations Hard2614 Prime In Diagonal Easy2615 Sum of Distances Medium2616 Minimize the Maximum Difference of Pairs Medium2617 Minimum Number of Visited Cells in a Grid Hard2619 Array Prototype Last Easy2639 Find the Width of Columns of a Grid Easy2640 Find the Score of All Prefixes of an Array Medium2643 Row With Maximum Ones Easy2644 Find the Maximum Divisibility Score Easy2646 Minimize the Total Price of the Trips Hard2653 Sliding Subarray Beauty Medium2654 Minimum Number of Operations to Make All Array Elements Equal to 1 Medium2656 Maximum Sum With Exactly K Elements Easy2657 Find the Prefix Common Array of Two Arrays Medium2658 Maximum Number of Fish in a Grid Medium2659 Make Array Empty Hard2660 Determine the Winner of a Bowling Game Easy2661 First Completely Painted Row or Column Medium2662 Minimum Cost of a Path With Special Roads Medium2670 Find the Distinct Difference Array Easy2672 Number of Adjacent Elements With the Same Color Medium2673 Make Costs of Paths Equal in a Binary Tree Medium2678 Number of Senior Citizens Easy2679 Sum in a Matrix Medium2680 Maximum OR Medium2681 Power of Heroes Hard2682 Find the Losers of the Circular Game Easy2683 Neighboring Bitwise XOR Medium2684 Maximum Number of Moves in a Grid Medium2706 Buy Two Chocolates Easy2707 Extra Characters in a String Medium2708 Maximum Strength of a Group Medium2709 Greatest Common Divisor Traversal Hard2711 Difference of Number of Distinct Values on Diagonals Medium2713 Maximum Strictly Increasing Cells in a Matrix Hard2717 Semi-Ordered Permutation Easy2718 Sum of Matrix After Queries Medium2731 Movement of Robots Medium2732 Find a Good Subset of the Matrix Hard2733 Neither Minimum nor Maximum Easy2735 Collecting Chocolates Medium2736 Maximum Sum Queries Hard2740 Find the Value of the Partition Medium2741 Special Permutations Medium2742 Painting the Walls Hard2744 Find Maximum Number of String Pairs Easy2746 Decremental String Concatenation Medium2747 Count Zero Request Servers Medium2748 Number of Beautiful Pairs Easy2750 Ways to Split Array Into Good Subarrays Medium2751 Robot Collisions Hard2760 Longest Even Odd Subarray With Threshold Easy2761 Prime Pairs With Target Sum Medium2762 Continuous Subarrays Medium2763 Sum of Imbalance Numbers of All Subarrays Hard2765 Longest Alternating Subarray Easy2766 Relocate Marbles Medium2768 Number of Black Blocks Medium2770 Maximum Number of Jumps to Reach the Last Index Medium2771 Longest Non-decreasing Subarray From Two Arrays Medium2772 Apply Operations to Make All Array Elements Equal to Zero Medium2778 Sum of Squares of Special Elements Easy2779 Maximum Beauty of an Array After Applying Operation Medium2780 Minimum Index of a Valid Split Medium2781 Length of the Longest Valid Substring Hard2784 Check if Array is Good Easy2786 Visit Array Positions to Maximize Score Medium2788 Split Strings by Separator Easy2789 Largest Element in an Array after Merge Operations Medium2790 Maximum Number of Groups With Increasing Length Hard2798 Number of Employees Who Met the Target Easy2799 Count Complete Subarrays in an Array Medium2808 Minimum Seconds to Equalize a Circular Array Medium2809 Minimum Time to Make Array Sum At Most x Hard2811 Check if it is Possible to Split Array Medium2812 Find the Safest Path in a Grid Medium2813 Maximum Elegance of a K-Length Subsequence Hard2815 Max Pair Sum in an Array Easy2817 Minimum Absolute Difference Between Elements With Constraint Medium2818 Apply Operations to Maximize Score Hard2824 Count Pairs Whose Sum is Less than Target Easy2826 Sorting Three Groups Medium2828 Check if a String Is an Acronym of Words Easy2830 Maximize the Profit as the Salesman Medium2831 Find the Longest Equal Subarray Medium2835 Minimum Operations to Form Subsequence With Target Sum Hard2836 Maximize Value of Function in a Ball Passing Game Hard2841 Maximum Sum of Almost Unique Subarray Medium2845 Count of Interesting Subarrays Medium2846 Minimum Edge Weight Equilibrium Queries in a Tree Hard2848 Points That Intersect With Cars Easy2850 Minimum Moves to Spread Stones Over Grid Medium2855 Minimum Right Shifts to Sort the Array Easy2856 Minimum Array Length After Pair Removals Medium2857 Count Pairs of Points With Distance k Medium2859 Sum of Values at Indices With K Set Bits Easy2860 Happy Students Medium2861 Maximum Number of Alloys Medium2862 Maximum Element-Sum of a Complete Subset of Indices Hard2865 Beautiful Towers I Medium2866 Beautiful Towers II Medium2869 Minimum Operations to Collect Elements Easy2870 Minimum Number of Operations to Make Array Empty Medium2871 Split Array Into Maximum Number of Subarrays Medium2873 Maximum Value of an Ordered Triplet I Easy2874 Maximum Value of an Ordered Triplet II Medium2875 Minimum Size Subarray in Infinite Array Medium2895 Minimum Processing Time Medium2897 Apply Operations on Array to Maximize Sum of Squares Hard2899 Last Visited Integers Easy2900 Longest Unequal Adjacent Groups Subsequence I Easy2901 Longest Unequal Adjacent Groups Subsequence II Medium2902 Count of Sub-Multisets With Bounded Sum Hard2903 Find Indices With Index and Value Difference I Easy2905 Find Indices With Index and Value Difference II Medium2906 Construct Product Matrix Medium2908 Minimum Sum of Mountain Triplets I Easy2909 Minimum Sum of Mountain Triplets II Medium2910 Minimum Number of Groups to Create a Valid Assignment Medium2913 Subarrays Distinct Element Sum of Squares I Easy2915 Length of the Longest Subsequence That Sums to Target Medium2916 Subarrays Distinct Element Sum of Squares II Hard2917 Find the K-or of an Array Easy2918 Minimum Equal Sum of Two Arrays After Replacing Zeros Medium2919 Minimum Increment Operations to Make Array Beautiful Medium2920 Maximum Points After Collecting Coins From All Nodes Hard2923 Find Champion I Easy2926 Maximum Balanced Subsequence Sum Hard2931 Maximum Spending After Buying Items Hard2932 Maximum Strong Pair XOR I Easy2933 High-Access Employees Medium2934 Minimum Operations to Maximize Last Elements in Arrays Medium2935 Maximum Strong Pair XOR II Hard2940 Find Building Where Alice and Bob Can Meet Hard2942 Find Words Containing Character Easy2943 Maximize Area of Square Hole in Grid Medium2944 Minimum Number of Coins for Fruits Medium2945 Find Maximum Non-decreasing Array Length Hard2946 Matrix Similarity After Cyclic Shifts Easy2948 Make Lexicographically Smallest Array by Swapping Elements Medium2951 Find the Peaks Easy2952 Minimum Number of Coins to be Added Medium2954 Count the Number of Infection Sequences Hard2956 Find Common Elements Between Two Arrays Easy2958 Length of Longest Subarray With at Most K Frequency Medium2960 Count Tested Devices After Test Operations Easy2961 Double Modular Exponentiation Medium2962 Count Subarrays Where Max Element Appears at Least K Times Medium2963 Count the Number of Good Partitions Hard2965 Find Missing and Repeated Values Easy2966 Divide Array Into Arrays With Max Difference Medium2967 Minimum Cost to Make Array Equalindromic Medium2968 Apply Operations to Maximize Frequency Score Hard2970 Count the Number of Incremovable Subarrays I Easy2971 Find Polygon With the Largest Perimeter Medium2972 Count the Number of Incremovable Subarrays II Hard2974 Minimum Number Game Easy2975 Maximum Square Area by Removing Fences From a Field Medium2976 Minimum Cost to Convert String I Medium2977 Minimum Cost to Convert String II Hard2980 Check if Bitwise OR Has Trailing Zeros Easy2996 Smallest Missing Integer Greater Than Sequential Prefix Sum Easy2997 Minimum Number of Operations to Make Array XOR Equal to K Medium3000 Maximum Area of Longest Diagonal Rectangle Easy3002 Maximum Size of a Set After Removals Medium3005 Count Elements With Maximum Frequency Easy3010 Divide an Array Into Subarrays With Minimum Cost I Easy3011 Find if Array Can Be Sorted Medium3012 Minimize Length of Array Using Operations Medium3013 Divide an Array Into Subarrays With Minimum Cost II Hard3020 Find the Maximum Number of Elements in Subset Medium3022 Minimize OR of Remaining Elements Using Operations Hard3024 Type of Triangle Easy3025 Find the Number of Ways to Place People I Medium3026 Maximum Good Subarray Sum Medium3027 Find the Number of Ways to Place People II Hard3028 Ant on the Boundary Easy3030 Find the Grid of Region Average Medium3033 Modify the Matrix Easy3034 Number of Subarrays That Match a Pattern I Medium3035 Maximum Palindromes After Operations Medium3036 Number of Subarrays That Match a Pattern II Hard3038 Maximum Number of Operations With the Same Score I Easy3039 Apply Operations to Make String Empty Medium3040 Maximum Number of Operations With the Same Score II Medium3041 Maximize Consecutive Elements in an Array After Modification Hard3042 Count Prefix and Suffix Pairs I Easy3043 Find the Length of the Longest Common Prefix Medium3044 Most Frequent Prime Medium3045 Count Prefix and Suffix Pairs II Hard3046 Split the Array Easy3047 Find the Largest Area of Square Inside Two Rectangles Medium3048 Earliest Second to Mark Indices I Medium3049 Earliest Second to Mark Indices II Hard3065 Minimum Operations to Exceed Threshold Value I Easy3066 Minimum Operations to Exceed Threshold Value II Medium3067 Count Pairs of Connectable Servers in a Weighted Tree Network Medium3068 Find the Maximum Sum of Node Values Hard3069 Distribute Elements Into Two Arrays I Easy3070 Count Submatrices with Top-Left Element and Sum Less Than k Medium3071 Minimum Operations to Write the Letter Y on a Grid Medium3072 Distribute Elements Into Two Arrays II Hard3074 Apple Redistribution into Boxes Easy3075 Maximize Happiness of Selected Children Medium3076 Shortest Uncommon Substring in an Array Medium3077 Maximum Strength of K Disjoint Subarrays Hard3079 Find the Sum of Encrypted Integers Easy3080 Mark Elements on Array by Performing Queries Medium3082 Find the Sum of the Power of All Subsequences Hard3086 Minimum Moves to Pick K Ones Hard3092 Most Frequent IDs Medium3093 Longest Common Suffix Queries Hard3095 Shortest Subarray With OR at Least K I Easy3096 Minimum Levels to Gain More Points Medium3097 Shortest Subarray With OR at Least K II Medium3098 Find the Sum of Subsequence Powers Hard3101 Count Alternating Subarrays Medium3102 Minimize Manhattan Distances Hard3105 Longest Strictly Increasing or Strictly Decreasing Subarray Easy3107 Minimum Operations to Make Median of Array Equal to K Medium3108 Minimum Cost Walk in Weighted Graph Hard3111 Minimum Rectangles to Cover Points Medium3112 Minimum Time to Visit Disappearing Nodes Medium3113 Find the Number of Subarrays Where Boundary Elements Are Maximum Hard3115 Maximum Prime Difference Medium3116 Kth Smallest Amount With Single Denomination Combination Hard3117 Minimum Sum of Values by Dividing Array Hard3122 Minimum Number of Operations to Satisfy Conditions Medium3127 Make a Square with the Same Color Easy3128 Right Triangles Medium3131 Find the Integer Added to Array I Easy3132 Find the Integer Added to Array II Medium3134 Find the Median of the Uniqueness Array Hard3139 Minimum Cost to Equalize Array Hard3142 Check if Grid Satisfies Conditions Easy3143 Maximum Points Inside the Square Medium3145 Find Products of Elements of Big Array Hard3147 Taking Maximum Energy From the Mystic Dungeon Medium3148 Maximum Difference Score in a Grid Medium3149 Find the Minimum Cost Array Permutation Hard3151 Special Array I Easy3152 Special Array II Medium3153 Sum of Digit Differences of All Pairs Medium3158 Find the XOR of Numbers Which Appear Twice Easy3159 Find Occurrences of an Element in an Array Medium3160 Find the Number of Distinct Colors Among the Balls Medium3161 Block Placement Queries Hard3162 Find the Number of Good Pairs I Easy3164 Find the Number of Good Pairs II Medium3165 Maximum Sum of Subsequence With Non-adjacent Elements Hard3169 Count Days Without Meetings Medium3171 Find Subarray With Bitwise OR Closest to K Hard3175 Find The First Player to win K Games in a Row Medium3176 Find the Maximum Length of a Good Subsequence I Medium3177 Find the Maximum Length of a Good Subsequence II Hard3179 Find the N-th Value After K Seconds Medium3180 Maximum Total Reward Using Operations I Medium3181 Maximum Total Reward Using Operations II Hard3184 Count Pairs That Form a Complete Day I Easy3185 Count Pairs That Form a Complete Day II Medium3186 Maximum Total Damage With Spell Casting Medium3187 Peaks in Array Hard3190 Find Minimum Operations to Make All Elements Divisible by Three Easy3191 Minimum Operations to Make Binary Array Elements Equal to One I Medium3192 Minimum Operations to Make Binary Array Elements Equal to One II Medium3193 Count the Number of Inversions Hard3194 Minimum Average of Smallest and Largest Elements Easy3195 Find the Minimum Area to Cover All Ones I Medium3196 Maximize Total Cost of Alternating Subarrays Medium3197 Find the Minimum Area to Cover All Ones II Hard3200 Maximum Height of a Triangle Easy3201 Find the Maximum Length of Valid Subsequence I Medium3202 Find the Maximum Length of Valid Subsequence II Medium3206 Alternating Groups I Easy3207 Maximum Points After Enemy Battles Medium3208 Alternating Groups II Medium3209 Number of Subarrays With AND Value of K Hard3212 Count Submatrices With Equal Frequency of X and Y Medium3213 Construct String with Minimum Cost Hard3217 Delete Nodes From Linked List Present in Array Medium3218 Minimum Cost for Cutting Cake I Medium3219 Minimum Cost for Cutting Cake II Hard3224 Minimum Array Changes to Make Differences Equal Medium3225 Maximum Score From Grid Operations Hard3229 Minimum Operations to Make Array Equal to Target Hard3232 Find if Digit Game Can Be Won Easy3233 Find the Count of Numbers Which Are Not Special Medium3235 Check if the Rectangle Corner Is Reachable Hard3238 Find the Number of Winning Players Easy3239 Minimum Number of Flips to Make Binary Grid Palindromic I Medium3240 Minimum Number of Flips to Make Binary Grid Palindromic II Medium3242 Design Neighbor Sum Service Easy3243 Shortest Distance After Road Addition Queries I Medium3244 Shortest Distance After Road Addition Queries II Hard3245 Alternating Groups III Hard3248 Snake in Matrix Easy3250 Find the Count of Monotonic Pairs I Hard3251 Find the Count of Monotonic Pairs II Hard3254 Find the Power of K-Size Subarrays I Medium3255 Find the Power of K-Size Subarrays II Medium3256 Maximum Value Sum by Placing Three Rooks I Hard3257 Maximum Value Sum by Placing Three Rooks II Hard3259 Maximum Energy Boost From Two Drinks Medium3261 Count Substrings That Satisfy K-Constraint II Hard3264 Final Array State After K Multiplication Operations I Easy3265 Count Almost Equal Pairs I Medium3266 Final Array State After K Multiplication Operations II Hard3267 Count Almost Equal Pairs II Hard3273 Minimum Amount of Damage Dealt to Bob Hard3275 K-th Nearest Obstacle Queries Medium3276 Select Cells in Grid With Maximum Score Hard3277 Maximum XOR Score Subarray Queries Hard3281 Maximize Score of Numbers in Ranges Medium3282 Reach End of Array With Max Score Medium3283 Maximum Number of Moves to Kill All Pawns Hard3285 Find Indices of Stable Mountains Easy3286 Find a Safe Walk Through a Grid Medium3287 Find the Maximum Sequence Value of Array Hard3288 Length of the Longest Increasing Path Hard3289 The Two Sneaky Numbers of Digitville Easy3290 Maximum Multiplication Score Medium3291 Minimum Number of Valid Strings to Form Target I Medium3292 Minimum Number of Valid Strings to Form Target II Hard3295 Report Spam Message Medium3296 Minimum Number of Seconds to Make Mountain Height Zero Medium3300 Minimum Element After Replacement With Digit Sum Easy3301 Maximize the Total Height of Unique Towers Medium3309 Maximum Possible Number by Binary Concatenation Medium3311 Construct 2D Grid Matching Graph Layout Hard3312 Sorted GCD Pair Queries Hard3314 Construct the Minimum Bitwise Array I Easy3315 Construct the Minimum Bitwise Array II Medium3316 Find Maximum Removals From Source String Medium3318 Find X-Sum of All K-Long Subarrays I Easy3321 Find X-Sum of All K-Long Subarrays II Hard3326 Minimum Division Operations to Make Array Non Decreasing Medium3327 Check if DFS Strings Are Palindromes Hard3331 Find Subtree Sizes After Changes Medium3332 Maximum Points Tourist Can Earn Medium3334 Find the Maximum Factor Score of Array Medium3336 Find the Number of Subsequences With Equal GCD Hard3341 Find Minimum Time to Reach Last Room I Medium3342 Find Minimum Time to Reach Last Room II Medium3346 Maximum Frequency of an Element After Performing Operations I Medium3347 Maximum Frequency of an Element After Performing Operations II Hard3349 Adjacent Increasing Subarrays Detection I Easy3350 Adjacent Increasing Subarrays Detection II Medium3351 Sum of Good Subsequences Hard3354 Make Array Elements Equal to Zero Easy3355 Zero Array Transformation I Medium3356 Zero Array Transformation II Medium3357 Minimize the Maximum Adjacent Element Difference Hard3361 Shift Distance Between Two Strings Medium3362 Zero Array Transformation III Medium3363 Find the Maximum Number of Fruits Collected Hard3364 Minimum Positive Sum Subarray Easy3366 Minimum Array Sum Medium3371 Identify the Largest Outlier in an Array Medium3375 Minimum Operations to Make Array Values Equal to K Easy3376 Minimum Time to Break Locks I Medium3378 Count Connected Components in LCM Graph Hard3379 Transformed Array Easy3380 Maximum Area Rectangle With Point Constraints I Medium3381 Maximum Subarray Sum With Length Divisible by K Medium3382 Maximum Area Rectangle With Point Constraints II Hard3386 Button with Longest Push Time Easy3387 Maximize Amount After Two Days of Conversions Medium3388 Count Beautiful Splits in an Array Medium3392 Count Subarrays of Length Three With a Condition Easy3393 Count Paths With the Given XOR Value Medium3394 Check if Grid can be Cut into Sections Medium3395 Subsequences with a Unique Middle Mode I Hard3396 Minimum Number of Operations to Make Elements in Array Distinct Easy3397 Maximum Number of Distinct Elements After Operations Medium3398 Smallest Substring With Identical Characters I Hard3402 Minimum Operations to Make Columns Strictly Increasing Easy3404 Count Special Subsequences Medium3409 Longest Subsequence With Decreasing Adjacent Difference Medium3410 Maximize Subarray Sum After Removing All Occurrences of One Element Hard3411 Maximum Subarray With Equal Products Easy3413 Maximum Coins From K Consecutive Bags Medium3414 Maximum Score of Non-overlapping Intervals Hard3417 Zigzag Grid Traversal With Skip Easy3418 Maximum Amount of Money Robot Can Earn Medium3420 Count Non-Decreasing Subarrays After K Operations Hard3423 Maximum Difference Between Adjacent Elements in a Circular Array Easy3424 Minimum Cost to Make Arrays Identical Medium3425 Longest Special Path Hard3427 Sum of Variable Length Subarrays Easy3428 Maximum and Minimum Sums of at Most Size K Subsequences Medium3429 Paint House IV Medium3430 Maximum and Minimum Sums of at Most Size K Subarrays Hard3432 Count Partitions with Even Sum Difference Easy3433 Count Mentions Per User Medium3434 Maximum Frequency After Subarray Operation Medium3435 Frequencies of Shortest Supersequences Hard3439 Reschedule Meetings for Maximum Free Time I Medium3440 Reschedule Meetings for Maximum Free Time II Medium3444 Minimum Increments for Target Multiples in an Array Hard3446 Sort Matrix by Diagonals Medium3447 Assign Elements to Groups with Constraints Medium3449 Maximize the Minimum Game Score Hard3452 Sum of Good Numbers Easy3453 Separate Squares I Medium3454 Separate Squares II Hard3457 Eat Pizzas! Medium3459 Length of Longest V-Shaped Diagonal Segment Hard3462 Maximum Sum With at Most K Elements Medium3464 Maximize the Distance Between Points on a Square Hard3467 Transform Array by Parity Easy3468 Find the Number of Copy Arrays Medium3469 Find Minimum Cost to Remove Array Elements Medium3470 Permutations IV Hard3471 Find the Largest Almost Missing Integer Easy3473 Sum of K Subarrays With Length at Least M Medium3477 Fruits Into Baskets II Easy3478 Choose K Elements With Maximum Sum Medium3479 Fruits Into Baskets III Medium3480 Maximize Subarrays After Removing One Conflicting Pair Hard3483 Unique 3-Digit Even Numbers Easy3484 Design Spreadsheet Medium3485 Longest Common Prefix of K Strings After Removal Hard3486 Longest Special Path II Hard3487 Maximum Unique Subarray Sum After Deletion Easy3488 Closest Equal Element Queries Medium3489 Zero Array Transformation IV Medium3493 Properties Graph Medium3494 Find the Minimum Amount of Time to Brew Potions Medium3495 Minimum Operations to Make Array Elements Zero Hard3500 Minimum Cost to Divide Array Into Subarrays Hard3501 Maximize Active Section with Trade II Hard3502 Minimum Cost to Reach Every Position Easy3505 Minimum Operations to Make Elements Within K Subarrays Equal Hard3507 Minimum Pair Removal to Sort Array I Easy3508 Implement Router Medium3509 Maximum Product of Subsequences With an Alternating Sum Equal to K Hard3510 Minimum Pair Removal to Sort Array II Hard3512 Minimum Operations to Make Array Sum Divisible by K Easy3513 Number of Unique XOR Triplets I Medium3514 Number of Unique XOR Triplets II Medium3515 Shortest Path in a Weighted Tree Hard3522 Calculate Score After Performing Instructions Medium3523 Make Array Non-decreasing Medium3524 Find X Value of Array I Medium3525 Find X Value of Array II Hard3527 Find the Most Common Response Medium3529 Count Cells in Overlapping Horizontal and Vertical Substrings Medium3530 Maximum Profit from Valid Topological Order in DAG Hard3531 Count Covered Buildings Medium3532 Path Existence Queries in a Graph I Medium3533 Concatenated Divisibility Hard3534 Path Existence Queries in a Graph II Hard3537 Fill a Special Grid Medium3538 Merge Operations for Minimum Travel Time Hard3539 Find Sum of Array Product of Magical Sequences Hard3542 Minimum Operations to Convert All Elements to Zero Medium3544 Subtree Inversion Sum Hard3546 Equal Sum Grid Partition I Medium3548 Equal Sum Grid Partition II Hard3550 Smallest Index With Digit Sum Equal to Index Easy3551 Minimum Swaps to Sort by Digit Sum Medium3552 Grid Teleportation Traversal Medium3553 Minimum Weighted Subgraph With the Required Paths II Hard3559 Number of Ways to Assign Edge Weights II Hard3562 Maximum Profit from Trading Stocks with Discounts Hard3566 Partition Array into Two Equal Product Subsets Medium3567 Minimum Absolute Difference in Sliding Submatrix Medium3568 Minimum Moves to Clean the Classroom Medium3569 Maximize Count of Distinct Primes After Split Hard3572 Maximize Y‑Sum by Picking a Triplet of Distinct X‑Values Medium3573 Best Time to Buy and Sell Stock V Medium3574 Maximize Subarray GCD Score Hard3575 Maximum Good Subtree Score Hard3576 Transform Array to All Equal Elements Medium3577 Count the Number of Computer Unlocking Permutations Medium3578 Count Partitions With Max-Min Difference at Most K Medium3583 Count Special Triplets Medium3584 Maximum Product of First and Last Elements of a Subsequence Medium3585 Find Weighted Median Node in Tree Hard3587 Minimum Adjacent Swaps to Alternate Parity Medium3588 Find Maximum Area of a Triangle Medium3589 Count Prime-Gap Balanced Subarrays Medium3590 Kth Smallest Path XOR Sum Hard3591 Check if Any Element Has Prime Frequency Easy3592 Inverse Coin Change Medium3593 Minimum Increments to Equalize Leaf Paths Medium3594 Minimum Time to Transport All Individuals Hard3598 Longest Common Prefix Between Adjacent Strings After Removals Medium3599 Partition Array to Minimize XOR Medium3603 Minimum Cost Path with Alternating Directions II Medium3605 Minimum Stability Factor of Array Hard3606 Coupon Code Validator Easy3607 Power Grid Maintenance Medium3618 Split Array by Prime Indices Medium3619 Count Islands With Total Value Divisible by K Medium3620 Network Recovery Pathways Hard3623 Count Number of Trapezoids I Medium3624 Number of Integers With Popcount-Depth Equal to K II Hard3625 Count Number of Trapezoids II Hard3630 Partition Array for Maximum XOR and AND Hard