method
Dynamic Programming — animated LeetCode walkthroughs
LeetCode problems solved with Dynamic Programming. Browse the complete tag, then watch the algorithm move — step-by-step animation, Python and Go.
680 problems · 598 animated · 82 locked
Start with a walkthrough
Full DP index
- 5Longest Palindromic SubstringWatch
- 10Regular Expression MatchingWatch
- 22Generate ParenthesesWatch
- 32Longest Valid ParenthesesWatch
- 42Trapping Rain WaterWatch
- 44Wildcard MatchingWatch
- 45Jump Game IIWatch
- 53Maximum SubarrayWatch
- 55Jump GameWatch
- 62Unique PathsWatch
- 63Unique Paths IIWatch
- 64Minimum Path SumWatch
- 70Climbing StairsWatch
- 72Edit DistanceWatch
- 85Maximal RectangleWatch
- 87Scramble StringWatch
- 91Decode WaysWatch
- 95Unique Binary Search Trees IIWatch
- 96Unique Binary Search TreesWatch
- 97Interleaving StringWatch
- 115Distinct SubsequencesWatch
- 118Pascal's TriangleWatch
- 119Pascal's Triangle IIWatch
- 120TriangleWatch
- 121Best Time to Buy and Sell StockWatch
- 122Best Time to Buy and Sell Stock IIWatch
- 123Best Time to Buy and Sell Stock IIIWatch
- 124Binary Tree Maximum Path SumWatch
- 131Palindrome PartitioningWatch
- 132Palindrome Partitioning IIWatch
- 139Word BreakWatch
- 140Word Break IIWatch
- 152Maximum Product SubarrayWatch
- 174Dungeon GameWatch
- 188Best Time to Buy and Sell Stock IVWatch
- 198House RobberWatch
- 213House Robber IIWatch
- 221Maximal SquareWatch
- 233Number of Digit OneWatch
- 241Different Ways to Add ParenthesesWatch
- 256Paint HouseLocked
- 264Ugly Number IIWatch
- 265Paint House IILocked
- 276Paint FenceLocked
- 279Perfect SquaresWatch
- 294Flip Game IILocked
- 300Longest Increasing SubsequenceWatch
- 309Best Time to Buy and Sell Stock with CooldownWatch
- 312Burst BalloonsWatch
- 313Super Ugly NumberWatch
- 322Coin ChangeWatch
- 329Longest Increasing Path in a MatrixWatch
- 333Largest BST SubtreeLocked
- 337House Robber IIIWatch
- 338Counting BitsWatch
- 343Integer BreakWatch
- 351Android Unlock PatternsLocked
- 354Russian Doll EnvelopesWatch
- 357Count Numbers with Unique DigitsWatch
- 361Bomb EnemyLocked
- 368Largest Divisible SubsetWatch
- 375Guess Number Higher or Lower IIWatch
- 376Wiggle SubsequenceWatch
- 377Combination Sum IVWatch
- 392Is SubsequenceWatch
- 396Rotate FunctionWatch
- 397Integer ReplacementWatch
- 403Frog JumpWatch
- 410Split Array Largest SumWatch
- 413Arithmetic SlicesWatch
- 416Partition Equal Subset SumWatch
- 418Sentence Screen FittingLocked
- 435Non-overlapping IntervalsWatch
- 446Arithmetic Slices II - SubsequenceWatch
- 458Poor PigsWatch
- 464Can I WinWatch
- 465Optimal Account BalancingLocked
- 466Count The RepetitionsWatch
- 467Unique Substrings in Wraparound StringWatch
- 471Encode String with Shortest LengthLocked
- 472Concatenated WordsWatch
- 473Matchsticks to SquareWatch
- 474Ones and ZeroesWatch
- 486Predict the WinnerWatch
- 487Max Consecutive Ones IILocked
- 488Zuma GameWatch
- 494Target SumWatch
- 509Fibonacci NumberWatch
- 514Freedom TrailWatch
- 516Longest Palindromic SubsequenceWatch
- 518Coin Change IIWatch
- 526Beautiful ArrangementWatch
- 54201 MatrixWatch
- 546Remove BoxesWatch
- 552Student Attendance Record IIWatch
- 553Optimal DivisionWatch
- 562Longest Line of Consecutive One in MatrixLocked
- 568Maximum Vacation DaysLocked
- 576Out of Boundary PathsWatch
- 583Delete Operation for Two StringsWatch
- 600Non-negative Integers without Consecutive OnesWatch
- 629K Inverse Pairs ArrayWatch
- 634Find the Derangement of An ArrayLocked
- 638Shopping OffersWatch
- 639Decode Ways IIWatch
- 646Maximum Length of Pair ChainWatch
- 647Palindromic SubstringsWatch
- 6502 Keys KeyboardWatch
- 6514 Keys KeyboardLocked
- 656Coin PathLocked
- 664Strange PrinterWatch
- 673Number of Longest Increasing SubsequenceWatch
- 678Valid Parenthesis StringWatch
- 688Knight Probability in ChessboardWatch
- 689Maximum Sum of 3 Non-Overlapping SubarraysWatch
- 691Stickers to Spell WordWatch
- 698Partition to K Equal Sum SubsetsWatch
- 712Minimum ASCII Delete Sum for Two StringsWatch
- 714Best Time to Buy and Sell Stock with Transaction FeeWatch
- 718Maximum Length of Repeated SubarrayWatch
- 727Minimum Window SubsequenceLocked
- 730Count Different Palindromic SubsequencesWatch
- 740Delete and EarnWatch
- 741Cherry PickupWatch
- 746Min Cost Climbing StairsWatch
- 750Number Of Corner RectanglesLocked
- 764Largest Plus SignWatch
- 773Sliding PuzzleWatch
- 787Cheapest Flights Within K StopsWatch
- 788Rotated DigitsWatch
- 790Domino and Tromino TilingWatch
- 792Number of Matching SubsequencesWatch
- 799Champagne TowerWatch
- 801Minimum Swaps To Make Sequences IncreasingWatch
- 805Split Array With Same AverageWatch
- 808Soup ServingsWatch
- 813Largest Sum of AveragesWatch
- 818Race CarWatch
- 823Binary Trees With FactorsWatch
- 828Count Unique Characters of All Substrings of a Given StringWatch
- 834Sum of Distances in TreeWatch
- 837New 21 GameWatch
- 838Push DominoesWatch
- 845Longest Mountain in ArrayWatch
- 847Shortest Path Visiting All NodesWatch
- 871Minimum Number of Refueling StopsWatch
- 873Length of Longest Fibonacci SubsequenceWatch
- 877Stone GameWatch
- 879Profitable SchemesWatch
- 887Super Egg DropWatch
- 894All Possible Full Binary TreesWatch
- 898Bitwise ORs of SubarraysWatch
- 902Numbers At Most N Given Digit SetWatch
- 903Valid Permutations for DI SequenceWatch
- 907Sum of Subarray MinimumsWatch
- 913Cat and MouseWatch
- 918Maximum Sum Circular SubarrayWatch
- 920Number of Music PlaylistsWatch
- 926Flip String to Monotone IncreasingWatch
- 931Minimum Falling Path SumWatch
- 935Knight DialerWatch
- 940Distinct Subsequences IIWatch
- 943Find the Shortest SuperstringWatch
- 956Tallest BillboardWatch
- 960Delete Columns to Make Sorted IIIWatch
- 964Least Operators to Express NumberWatch
- 968Binary Tree CamerasWatch
- 975Odd Even JumpWatch
- 978Longest Turbulent SubarrayWatch
- 983Minimum Cost For TicketsWatch
- 996Number of Squareful ArraysWatch
- 1000Minimum Cost to Merge StonesWatch
- 1012Numbers With Repeated DigitsWatch
- 1014Best Sightseeing PairWatch
- 1024Video StitchingWatch
- 1025Divisor GameWatch
- 1027Longest Arithmetic SubsequenceWatch
- 1031Maximum Sum of Two Non-Overlapping SubarraysWatch
- 1035Uncrossed LinesWatch
- 1039Minimum Score Triangulation of PolygonWatch
- 1043Partition Array for Maximum SumWatch
- 1048Longest String ChainWatch
- 1049Last Stone Weight IIWatch
- 1062Longest Repeating SubstringLocked
- 1066Campus Bikes IILocked
- 1067Digit Count in RangeLocked
- 1092Shortest Common Supersequence Watch
- 1105Filling Bookcase ShelvesWatch
- 1125Smallest Sufficient TeamWatch
- 1130Minimum Cost Tree From Leaf ValuesWatch
- 1137N-th Tribonacci NumberWatch
- 1139Largest 1-Bordered SquareWatch
- 1140Stone Game IIWatch
- 1143Longest Common SubsequenceWatch
- 1147Longest Chunked Palindrome DecompositionWatch
- 1155Number of Dice Rolls With Target SumWatch
- 1162As Far from Land as PossibleWatch
- 1182Shortest Distance to Target ColorLocked
- 1186Maximum Subarray Sum with One DeletionWatch
- 1187Make Array Strictly IncreasingWatch
- 1191K-Concatenation Maximum SumWatch
- 1216Valid Palindrome IIILocked
- 1218Longest Arithmetic Subsequence of Given DifferenceWatch
- 1220Count Vowels PermutationWatch
- 1223Dice Roll SimulationWatch
- 1227Airplane Seat Assignment ProbabilityWatch
- 1230Toss Strange CoinsLocked
- 1235Maximum Profit in Job SchedulingWatch
- 1246Palindrome RemovalLocked
- 1255Maximum Score Words Formed by LettersWatch
- 1259Handshakes That Don't CrossLocked
- 1262Greatest Sum Divisible by ThreeWatch
- 1269Number of Ways to Stay in the Same Place After Some StepsWatch
- 1277Count Square Submatrices with All OnesWatch
- 1278Palindrome Partitioning IIIWatch
- 1289Minimum Falling Path Sum IIWatch
- 1301Number of Paths with Max ScoreWatch
- 1312Minimum Insertion Steps to Make a String PalindromeWatch
- 1320Minimum Distance to Type a Word Using Two FingersWatch
- 1326Minimum Number of Taps to Open to Water a GardenWatch
- 1334Find the City With the Smallest Number of Neighbors at a Threshold DistanceWatch
- 1335Minimum Difficulty of a Job ScheduleWatch
- 1340Jump Game VWatch
- 1349Maximum Students Taking ExamWatch
- 1359Count All Valid Pickup and Delivery OptionsWatch
- 1363Largest Multiple of ThreeWatch
- 1372Longest ZigZag Path in a Binary TreeWatch
- 1373Maximum Sum BST in Binary TreeWatch
- 1387Sort Integers by The Power ValueWatch
- 1388Pizza With 3n SlicesWatch
- 1395Count Number of TeamsWatch
- 1397Find All Good StringsWatch
- 1402Reducing DishesWatch
- 1406Stone Game IIIWatch
- 1411Number of Ways to Paint N × 3 GridWatch
- 1416Restore The ArrayWatch
- 1420Build Array Where You Can Find The Maximum Exactly K ComparisonsWatch
- 1425Constrained Subsequence SumWatch
- 1434Number of Ways to Wear Different Hats to Each OtherWatch
- 1444Number of Ways of Cutting a PizzaWatch
- 1449Form Largest Integer With Digits That Add up to TargetWatch
- 1458Max Dot Product of Two SubsequencesWatch
- 1463Cherry Pickup IIWatch
- 1467Probability of a Two Boxes Having The Same Number of Distinct BallsWatch
- 1473Paint House IIIWatch
- 1477Find Two Non-overlapping Sub-arrays Each With Target SumWatch
- 1478Allocate MailboxesWatch
- 1483Kth Ancestor of a Tree NodeWatch
- 1493Longest Subarray of 1's After Deleting One ElementWatch
- 1494Parallel Courses IIWatch
- 1504Count Submatrices With All OnesWatch
- 1510Stone Game IVWatch
- 1524Number of Sub-arrays With Odd SumWatch
- 1525Number of Good Ways to Split a StringWatch
- 1526Minimum Number of Increments on Subarrays to Form a Target ArrayWatch
- 1531String Compression IIWatch
- 1537Get the Maximum ScoreWatch
- 1547Minimum Cost to Cut a StickWatch
- 1548The Most Similar Path in a GraphLocked
- 1553Minimum Number of Days to Eat N OrangesWatch
- 1563Stone Game VWatch
- 1567Maximum Length of Subarray With Positive ProductWatch
- 1569Number of Ways to Reorder Array to Get Same BSTWatch
- 1575Count All Possible RoutesWatch
- 1578Minimum Time to Make Rope ColorfulWatch
- 1594Maximum Non Negative Product in a MatrixWatch
- 1595Minimum Cost to Connect Two Groups of PointsWatch
- 1611Minimum One Bit Operations to Make Integers ZeroWatch
- 1617Count Subtrees With Max Distance Between CitiesWatch
- 1621Number of Sets of K Non-Overlapping Line SegmentsWatch
- 1626Best Team With No ConflictsWatch
- 1638Count Substrings That Differ by One CharacterWatch
- 1639Number of Ways to Form a Target String Given a DictionaryWatch
- 1641Count Sorted Vowel StringsWatch
- 1643Kth Smallest InstructionsWatch
- 1653Minimum Deletions to Make String BalancedWatch
- 1655Distribute Repeating IntegersWatch
- 1659Maximize Grid HappinessWatch
- 1668Maximum Repeating SubstringWatch
- 1671Minimum Number of Removals to Make Mountain ArrayWatch
- 1681Minimum IncompatibilityWatch
- 1682Longest Palindromic Subsequence IILocked
- 1687Delivering Boxes from Storage to PortsWatch
- 1690Stone Game VIIWatch
- 1691Maximum Height by Stacking Cuboids Watch
- 1692Count Ways to Distribute CandiesLocked
- 1696Jump Game VIWatch
- 1714Sum Of Special Evenly-Spaced Elements In ArrayLocked
- 1723Find Minimum Time to Finish All JobsWatch
- 1728Cat and Mouse IIWatch
- 1735Count Ways to Make Array With ProductWatch
- 1745Palindrome Partitioning IVWatch
- 1746Maximum Subarray Sum After One OperationLocked
- 1749Maximum Absolute Sum of Any SubarrayWatch
- 1751Maximum Number of Events That Can Be Attended IIWatch
- 1755Closest Subsequence SumWatch
- 1770Maximum Score from Performing Multiplication OperationsWatch
- 1771Maximize Palindrome Length From SubsequencesWatch
- 1774Closest Dessert CostWatch
- 1786Number of Restricted Paths From First to Last NodeWatch
- 1787Make the XOR of All Segments Equal to ZeroWatch
- 1799Maximize Score After N OperationsWatch
- 1815Maximum Number of Groups Getting Fresh DonutsWatch
- 1824Minimum Sideway JumpsWatch
- 1857Largest Color Value in a Directed GraphWatch
- 1866Number of Ways to Rearrange Sticks With K Sticks VisibleWatch
- 1871Jump Game VIIWatch
- 1872Stone Game VIIIWatch
- 1879Minimum XOR Sum of Two ArraysWatch
- 1883Minimum Skips to Arrive at Meeting On TimeWatch
- 1884Egg Drop With 2 Eggs and N FloorsWatch
- 1888Minimum Number of Flips to Make the Binary String AlternatingWatch
- 1896Minimum Cost to Change the Final Value of ExpressionWatch
- 1900The Earliest and Latest Rounds Where Players CompeteWatch
- 1908Game of NimLocked
- 1911Maximum Alternating Subsequence SumWatch
- 1916Count Ways to Build Rooms in an Ant ColonyWatch
- 1928Minimum Cost to Reach Destination in TimeWatch
- 1931Painting a Grid With Three Different ColorsWatch
- 1937Maximum Number of Points with CostWatch
- 1947Maximum Compatibility Score SumWatch
- 1955Count Number of Special SubsequencesWatch
- 1959Minimum Total Space Wasted With K Resizing OperationsWatch
- 1976Number of Ways to Arrive at DestinationWatch
- 1977Number of Ways to Separate NumbersWatch
- 1981Minimize the Difference Between Target and Chosen ElementsWatch
- 1986Minimum Number of Work Sessions to Finish the TasksWatch
- 1987Number of Unique Good SubsequencesWatch
- 1994The Number of Good SubsetsWatch
- 1997First Day Where You Have Been in All the RoomsWatch
- 2002Maximum Product of the Length of Two Palindromic SubsequencesWatch
- 2003Smallest Missing Genetic Value in Each SubtreeWatch
- 2005Subtree Removal Game with Fibonacci TreeLocked
- 2008Maximum Earnings From TaxiWatch
- 2019The Score of Students Solving Math ExpressionWatch
- 2035Partition Array Into Two Arrays to Minimize Sum DifferenceWatch
- 2036Maximum Alternating Subarray SumLocked
- 2050Parallel Courses IIIWatch
- 2052Minimum Cost to Separate Sentence Into RowsLocked
- 2054Two Best Non-Overlapping EventsWatch
- 2060Check if an Original String Exists Given Two Encoded StringsWatch
- 2063Vowels of All SubstringsWatch
- 2086Minimum Number of Food Buckets to Feed the HamstersWatch
- 2088Count Fertile Pyramids in a LandWatch
- 2100Find Good Days to Rob the BankWatch
- 2110Number of Smooth Descent Periods of a StockWatch
- 2127Maximum Employees to Be Invited to a MeetingWatch
- 2140Solving Questions With BrainpowerWatch
- 2143Choose Numbers From Two Arrays in RangeLocked
- 2147Number of Ways to Divide a Long CorridorWatch
- 2152Minimum Number of Lines to Cover PointsLocked
- 2163Minimum Difference in Sums After Removal of ElementsWatch
- 2167Minimum Time to Remove All Cars Containing Illegal GoodsWatch
- 2172Maximum AND Sum of ArrayWatch
- 2184Number of Ways to Build Sturdy Brick WallLocked
- 2188Minimum Time to Finish the RaceWatch
- 2189Number of Ways to Build House of CardsLocked
- 2209Minimum White Tiles After Covering With CarpetsWatch
- 2218Maximum Value of K Coins From PilesWatch
- 2222Number of Ways to Select BuildingsWatch
- 2247Maximum Cost of Trip With K HighwaysLocked
- 2262Total Appeal of A StringWatch
- 2263Make Array Non-decreasing or Non-increasingLocked
- 2266Count Number of TextsWatch
- 2267 Check if There Is a Valid Parentheses String PathWatch
- 2272Substring With Largest VarianceWatch
- 2289Steps to Make Array Non-decreasingWatch
- 2291Maximum Profit From Trading StocksLocked
- 2297Jump Game VIIILocked
- 2304Minimum Path Cost in a GridWatch
- 2305Fair Distribution of CookiesWatch
- 2310Sum of Numbers With Units Digit KWatch
- 2311Longest Binary Subsequence Less Than or Equal to KWatch
- 2312Selling Pieces of WoodWatch
- 2313Minimum Flips in Binary Tree to Get ResultLocked
- 2318Number of Distinct Roll SequencesWatch
- 2320Count Number of Ways to Place HousesWatch
- 2321Maximum Score Of Spliced ArrayWatch
- 2327Number of People Aware of a SecretWatch
- 2328Number of Increasing Paths in a GridWatch
- 2338Count the Number of Ideal ArraysWatch
- 2355Maximum Number of Books You Can TakeLocked
- 2361Minimum Costs Using the Train LineLocked
- 2369Check if There is a Valid Partition For The ArrayWatch
- 2370Longest Ideal SubsequenceWatch
- 2376Count Special IntegersWatch
- 2378Choose Edges to Maximize Score in a TreeLocked
- 2380Time Needed to Rearrange a Binary StringWatch
- 2393Count Strictly Increasing SubarraysLocked
- 2400Number of Ways to Reach a Position After Exactly k StepsWatch
- 2403Minimum Time to Kill All MonstersLocked
- 2407Longest Increasing Subsequence IIWatch
- 2420Find All Good IndicesWatch
- 2430Maximum Deletions on a StringWatch
- 2431Maximize Total Tastiness of Purchased FruitsLocked
- 2435Paths in Matrix Whose Sum Is Divisible by KWatch
- 2436Minimum Split Into Subarrays With GCD Greater Than OneLocked
- 2439Minimize Maximum of ArrayWatch
- 2463Minimum Total Distance TraveledWatch
- 2464Minimum Subarrays in a Valid SplitLocked
- 2466Count Ways To Build Good StringsWatch
- 2472Maximum Number of Non-overlapping Palindrome SubstringsWatch
- 2478Number of Beautiful PartitionsWatch
- 2484Count Palindromic SubsequencesWatch
- 2495Number of Subarrays Having Even ProductLocked
- 2501Longest Square Streak in an ArrayWatch
- 2510Check if There is a Path With Equal Number of 0's And 1'sLocked
- 2518Number of Great PartitionsWatch
- 2522Partition String Into Substrings With Values at Most KWatch
- 2533Number of Good Binary StringsLocked
- 2538Difference Between Maximum and Minimum Price SumWatch
- 2547Minimum Cost to Split an ArrayWatch
- 2552Count Increasing QuadrupletsWatch
- 2556Disconnect Path in a Binary Matrix by at Most One FlipWatch
- 2560House Robber IVWatch
- 2571Minimum Operations to Reduce an Integer to 0Watch
- 2572Count the Number of Square-Free SubsetsWatch
- 2573Find the String with LCPWatch
- 2581Count Number of Possible Root NodesWatch
- 2585Number of Ways to Earn PointsWatch
- 2597The Number of Beautiful SubsetsWatch
- 2606Find the Substring With Maximum CostWatch
- 2616Minimize the Maximum Difference of PairsWatch
- 2617Minimum Number of Visited Cells in a GridWatch
- 2638Count the Number of K-Free SubsetsLocked
- 2645Minimum Additions to Make Valid StringWatch
- 2646Minimize the Total Price of the TripsWatch
- 2673Make Costs of Paths Equal in a Binary TreeWatch
- 2681Power of HeroesWatch
- 2684Maximum Number of Moves in a GridWatch
- 2707Extra Characters in a StringWatch
- 2708Maximum Strength of a GroupWatch
- 2712Minimum Cost to Make All Characters EqualWatch
- 2713Maximum Strictly Increasing Cells in a MatrixWatch
- 2719Count of IntegersWatch
- 2741Special PermutationsWatch
- 2742Painting the WallsWatch
- 2745Construct the Longest New StringWatch
- 2746Decremental String ConcatenationWatch
- 2750Ways to Split Array Into Good SubarraysWatch
- 2767Partition String Into Minimum Beautiful SubstringsWatch
- 2770Maximum Number of Jumps to Reach the Last IndexWatch
- 2771Longest Non-decreasing Subarray From Two ArraysWatch
- 2786Visit Array Positions to Maximize ScoreWatch
- 2787Ways to Express an Integer as Sum of PowersWatch
- 2801Count Stepping Numbers in RangeWatch
- 2809Minimum Time to Make Array Sum At Most xWatch
- 2811Check if it is Possible to Split ArrayWatch
- 2826Sorting Three GroupsWatch
- 2827Number of Beautiful Integers in the RangeWatch
- 2830Maximize the Profit as the SalesmanWatch
- 2836Maximize Value of Function in a Ball Passing GameWatch
- 2846Minimum Edge Weight Equilibrium Queries in a TreeWatch
- 2850Minimum Moves to Spread Stones Over GridWatch
- 2851String TransformationWatch
- 2858Minimum Edge Reversals So Every Node Is ReachableWatch
- 2867Count Valid Paths in a TreeWatch
- 2876Count Visited Nodes in a Directed GraphWatch
- 2892Minimizing Array After Replacing Pairs With Their ProductLocked
- 2896Apply Operations to Make Two Strings EqualWatch
- 2900Longest Unequal Adjacent Groups Subsequence IWatch
- 2901Longest Unequal Adjacent Groups Subsequence IIWatch
- 2902Count of Sub-Multisets With Bounded SumWatch
- 2911Minimum Changes to Make K Semi-palindromesWatch
- 2912Number of Ways to Reach Destination in the GridLocked
- 2915Length of the Longest Subsequence That Sums to TargetWatch
- 2919Minimum Increment Operations to Make Array BeautifulWatch
- 2920Maximum Points After Collecting Coins From All NodesWatch
- 2925Maximum Score After Applying Operations on a TreeWatch
- 2926Maximum Balanced Subsequence SumWatch
- 2930Number of Strings Which Can Be Rearranged to Contain SubstringWatch
- 2944Minimum Number of Coins for FruitsWatch
- 2945Find Maximum Non-decreasing Array LengthWatch
- 2957Remove Adjacent Almost-Equal CharactersWatch
- 2969Minimum Number of Coins for Fruits IILocked
- 2973Find Number of Coins to Place in Tree NodesWatch
- 2977Minimum Cost to Convert String IIWatch
- 2979Most Expensive Item That Can Not Be BoughtLocked
- 2992Number of Self-Divisible PermutationsLocked
- 2998Minimum Number of Operations to Make X and Y EqualWatch
- 2999Count the Number of Powerful IntegersWatch
- 3003Maximize the Number of Partitions After OperationsWatch
- 3004Maximum Subtree of the Same ColorLocked
- 3007Maximum Number That Sum of the Prices Is Less Than or Equal to KWatch
- 3018Maximum Number of Removal Queries That Can Be Processed ILocked
- 3032Count Numbers With Unique Digits IILocked
- 3040Maximum Number of Operations With the Same Score IIWatch
- 3041Maximize Consecutive Elements in an Array After ModificationWatch
- 3068Find the Maximum Sum of Node ValuesWatch
- 3077Maximum Strength of K Disjoint SubarraysWatch
- 3082Find the Sum of the Power of All SubsequencesWatch
- 3098Find the Sum of Subsequence PowersWatch
- 3117Minimum Sum of Values by Dividing ArrayWatch
- 3122Minimum Number of Operations to Satisfy ConditionsWatch
- 3129Find All Possible Stable Binary Arrays IWatch
- 3130Find All Possible Stable Binary Arrays IIWatch
- 3135Equalize Strings by Adding or Removing Characters at EndsLocked
- 3144Minimum Substring Partition of Equal Character FrequencyWatch
- 3147Taking Maximum Energy From the Mystic DungeonWatch
- 3148Maximum Difference Score in a GridWatch
- 3149Find the Minimum Cost Array PermutationWatch
- 3154Find Number of Ways to Reach the K-th StairWatch
- 3165Maximum Sum of Subsequence With Non-adjacent ElementsWatch
- 3176Find the Maximum Length of a Good Subsequence IWatch
- 3177Find the Maximum Length of a Good Subsequence IIWatch
- 3180Maximum Total Reward Using Operations IWatch
- 3181Maximum Total Reward Using Operations IIWatch
- 3183The Number of Ways to Make the SumLocked
- 3186Maximum Total Damage With Spell CastingWatch
- 3192Minimum Operations to Make Binary Array Elements Equal to One IIWatch
- 3193Count the Number of InversionsWatch
- 3196Maximize Total Cost of Alternating SubarraysWatch
- 3201Find the Maximum Length of Valid Subsequence IWatch
- 3202Find the Maximum Length of Valid Subsequence IIWatch
- 3205Maximum Array Hopping Score ILocked
- 3213Construct String with Minimum CostWatch
- 3218Minimum Cost for Cutting Cake IWatch
- 3225Maximum Score From Grid OperationsWatch
- 3229Minimum Operations to Make Array Equal to TargetWatch
- 3241Time Taken to Mark All NodesWatch
- 3247Number of Subsequences with Odd SumLocked
- 3250Find the Count of Monotonic Pairs IWatch
- 3251Find the Count of Monotonic Pairs IIWatch
- 3256Maximum Value Sum by Placing Three Rooks IWatch
- 3257Maximum Value Sum by Placing Three Rooks IIWatch
- 3259Maximum Energy Boost From Two DrinksWatch
- 3260Find the Largest Palindrome Divisible by KWatch
- 3269Constructing Two Increasing ArraysLocked
- 3276Select Cells in Grid With Maximum ScoreWatch
- 3277Maximum XOR Score Subarray QueriesWatch
- 3284Sum of Consecutive SubarraysLocked
- 3287Find the Maximum Sequence Value of ArrayWatch
- 3290Maximum Multiplication ScoreWatch
- 3291Minimum Number of Valid Strings to Form Target IWatch
- 3292Minimum Number of Valid Strings to Form Target IIWatch
- 3299Sum of Consecutive SubsequencesLocked
- 3302Find the Lexicographically Smallest Valid SequenceWatch
- 3316Find Maximum Removals From Source StringWatch
- 3317Find the Number of Possible Ways for an EventWatch
- 3320Count The Number of Winning SequencesWatch
- 3332Maximum Points Tourist Can EarnWatch
- 3333Find the Original Typed String IIWatch
- 3335Total Characters in String After Transformations IWatch
- 3336Find the Number of Subsequences With Equal GCDWatch
- 3337Total Characters in String After Transformations IIWatch
- 3339Find the Number of K-Even ArraysLocked
- 3343Count Number of Balanced PermutationsWatch
- 3351Sum of Good SubsequencesWatch
- 3352Count K-Reducible Numbers Less Than NWatch
- 3363Find the Maximum Number of Fruits CollectedWatch
- 3366Minimum Array SumWatch
- 3367Maximize Sum of Weights after Edge RemovalsWatch
- 3376Minimum Time to Break Locks IWatch
- 3388Count Beautiful Splits in an ArrayWatch
- 3389Minimum Operations to Make Character Frequencies EqualWatch
- 3393Count Paths With the Given XOR ValueWatch
- 3409Longest Subsequence With Decreasing Adjacent DifferenceWatch
- 3410Maximize Subarray Sum After Removing All Occurrences of One ElementWatch
- 3414Maximum Score of Non-overlapping IntervalsWatch
- 3418Maximum Amount of Money Robot Can EarnWatch
- 3428Maximum and Minimum Sums of at Most Size K SubsequencesWatch
- 3429Paint House IVWatch
- 3434Maximum Frequency After Subarray OperationWatch
- 3441Minimum Cost Good CaptionWatch
- 3444Minimum Increments for Target Multiples in an ArrayWatch
- 3448Count Substrings Divisible By Last DigitWatch
- 3458Select K Disjoint Special SubstringsWatch
- 3459Length of Longest V-Shaped Diagonal SegmentWatch
- 3466Maximum Coin Collection Locked
- 3469Find Minimum Cost to Remove Array ElementsWatch
- 3472Longest Palindromic Subsequence After at Most K OperationsWatch
- 3473Sum of K Subarrays With Length at Least MWatch
- 3489Zero Array Transformation IVWatch
- 3490Count Beautiful NumbersWatch
- 3500Minimum Cost to Divide Array Into SubarraysWatch
- 3503Longest Palindrome After Substring Concatenation IWatch
- 3504Longest Palindrome After Substring Concatenation IIWatch
- 3505Minimum Operations to Make Elements Within K Subarrays EqualWatch
- 3509Maximum Product of Subsequences With an Alternating Sum Equal to KWatch
- 3519Count Numbers with Non-Decreasing Digits Watch
- 3524Find X Value of Array IWatch
- 3530Maximum Profit from Valid Topological Order in DAGWatch
- 3533Concatenated DivisibilityWatch
- 3534Path Existence Queries in a Graph IIWatch
- 3538Merge Operations for Minimum Travel TimeWatch
- 3539Find Sum of Array Product of Magical SequencesWatch
- 3543Maximum Weighted K-Edge PathWatch
- 3544Subtree Inversion SumWatch
- 3553Minimum Weighted Subgraph With the Required Paths IIWatch
- 3557Find Maximum Number of Non Intersecting SubstringsWatch
- 3559Number of Ways to Assign Edge Weights IIWatch
- 3562Maximum Profit from Trading Stocks with DiscountsWatch
- 3563Lexicographically Smallest String After Adjacent RemovalsWatch
- 3573Best Time to Buy and Sell Stock VWatch
- 3575Maximum Good Subtree ScoreWatch
- 3578Count Partitions With Max-Min Difference at Most KWatch
- 3579Minimum Steps to Convert String with OperationsWatch
- 3585Find Weighted Median Node in TreeWatch
- 3592Inverse Coin ChangeWatch
- 3593Minimum Increments to Equalize Leaf PathsWatch
- 3599Partition Array to Minimize XORWatch
- 3603Minimum Cost Path with Alternating Directions IIWatch
- 3610Minimum Number of Primes to Sum to TargetLocked
- 3615Longest Palindromic Path in GraphWatch
- 3620Network Recovery PathwaysWatch
- 3621Number of Integers With Popcount-Depth Equal to K IWatch
- 3628Maximum Number of Subsequences After One InsertingWatch
- 3638Maximum Balanced ShipmentsWatch
- 3640Trionic Array IIWatch
- 3647Maximum Weight in Two BagsLocked
- 3651Minimum Cost Path with TeleportationsWatch
- 3654Minimum Sum After Divisible Sum DeletionsWatch
- 3660Jump Game IXWatch
- 3661Maximum Walls Destroyed by RobotsWatch
- 3665Twisted Mirror Path CountWatch
- 3670Maximum Product of Two Integers With No Common BitsWatch
- 3685Subsequence Sum After Capping ElementsWatch
- 3686Number of Stable SubsequencesWatch
- 3693Climbing Stairs IIWatch
- 3699Number of ZigZag Arrays IWatch
- 3700Number of ZigZag Arrays IIWatch
- 3704Count No-Zero Pairs That Sum to NWatch
- 3717Minimum Operations to Make the Array BeautifulLocked
- 3725Count Ways to Choose Coprime Integers from RowsWatch
- 3738Longest Non-Decreasing Subarray After Replacing at Most One ElementWatch
- 3742Maximum Path Score in a GridWatch
- 3743Maximize Cyclic Partition ScoreWatch
- 3747Count Distinct Integers After Removing ZerosWatch
- 3751Total Waviness of Numbers in Range IWatch
- 3753Total Waviness of Numbers in Range IIWatch
- 3757Number of Effective SubsequencesWatch
- 3772Maximum Subgraph Score in a TreeWatch
- 3791Number of Balanced Integers in a RangeWatch
- 3797Count Routes to Climb a Rectangular GridWatch
- 3801Minimum Cost to Merge Sorted ListsWatch
- 3811Number of Alternating XOR PartitionsWatch
- 3826Minimum Partition ScoreWatch
- 3830Longest Alternating Subarray After Removing At Most One ElementWatch
- 3836Maximum Score Using Exactly K PairsWatch
- 3840House Robber VWatch
- 3844Longest Almost-Palindromic SubstringWatch
- 3850Count Sequences to KWatch
- 3857Minimum Cost to Split into OnesWatch
- 3869Count Fancy Numbers in a RangeWatch
- 3877Minimum Removals to Achieve Target XORWatch
- 3882Minimum XOR Path in a GridWatch
- 3883Count Non Decreasing Arrays With Given Digit SumsWatch
- 3891Minimum Increase to Maximize Special IndicesWatch
- 3892Minimum Operations to Achieve At Least K PeaksWatch
- 3906Count Good Integers on a Grid PathWatch
- 3915Maximum Sum of Alternating Subsequence With Distance at Least KWatch
- 3916Number of ZigZag Arrays IIILocked
- 3929Minimum Partition Score IILocked
- 3938Maximum Path Intersection Sum in a GridWatch
- 3939Count Non Adjacent Subsets in a Rooted TreeWatch
- 3946Maximum Number of Items From Sale IWatch
- 3949Subtree Inversion Sum IILocked
- 3952Maximum Total Value of Covered IndicesWatch
- 3954Sum of Compatible Numbers in Range IWatch
- 3956Maximum Sum of M Non-Overlapping Subarrays IWatch
- 3957Maximum Sum of M Non-Overlapping Subarrays IIWatch
- 3965Finish Time of Tasks IWatch
- 3966Count Good Integers in a RangeWatch
- 3967Finish Time of Tasks IILocked
- 3973Distinct Gate Paths to LCALocked
- 3976Maximum Subarray Sum After MultiplierWatch
- 3977Minimum Time to Reach Target With Limited PowerWatch
- 3980Minimum Operations to Transform Binary StringWatch
- 3981Count Distinct Ways to Form Target from Two StringsWatch
- 3984Divisible GameWatch
- 3989Maximum Consistent Columns in a GridWatch
- 3995Minimum Cost to Convert String IIIWatch
- 4009Minimum Possible Maximum Waiting TimeWatch
- 4016Maximum Area of Two Non-Overlapping Square SubmatricesWatch
- 4023Elevator Requests IIWatch
- 4027Elevator Requests IIIWatch
- 4040Minimum Operations to Form Subset Sum IWatch
- 4041Minimum Operations to Form Subset Sum IIWatch
- 4047Minimum Operations to Make XOR of All Elements ZeroLocked
- 4050Minimum Days to Score Exactly N PointsWatch