| 72 |
Edit Distance |
JavaScript, Python |
O(n) |
O(n) |
Explanation |
| 91 |
Decode Ways |
JavaScript |
O(n) |
O(n) |
Explanation |
| 97 |
Interleaving String |
JavaScript, Python |
O(n) |
O(n) |
Explanation |
| 120 |
Triangle |
JavaScript |
O(n) |
O(n) |
Explanation |
| 221 |
Maximal Square |
JavaScript |
O(n) |
O(n) |
Explanation |
| 279 |
Perfect Squares |
Python |
O(n) |
O(n) |
Explanation |
| 322 |
Coin Change |
JavaScript |
O(n) |
O(n) |
Explanation |
| 334 |
Increasing Triplet Subsequence |
JavaScript |
O(n) |
O(n) |
Explanation |
| 368 |
Largest Divisible Subset |
JavaScript |
O(n) |
O(n) |
Explanation |
| 375 |
Guess Number Higher or Lower II |
Python |
O(n) |
O(n) |
Explanation |
| 376 |
Wiggle Subsequence |
Python |
O(n) |
O(n) |
Explanation |
| 416 |
Partition Equal Subset Sum |
JavaScript |
O(n) |
O(n) |
Explanation |
| 474 |
Ones and Zeroes |
Python |
O(n) |
O(n) |
Explanation |
| 478 |
Generate Random Point in a Circle |
Python |
O(n) |
O(n) |
Explanation |
| 486 |
Predict the Winner |
C++ |
O(n) |
O(n) |
Explanation |
| 516 |
Longest Palindromic Subsequence |
Python |
O(n) |
O(n) |
Explanation |
| 518 |
Coin Change II |
Python |
O(n) |
O(n) |
Explanation |
| 522 |
Longest Uncommon Subsequence II |
Python |
O(n) |
O(n) |
Explanation |
| 583 |
Delete Operation for Two Strings |
Python |
O(n) |
O(n) |
Explanation |
| 673 |
Number of Longest Increasing Subsequence |
JavaScript |
O(n) |
O(n) |
Explanation |
| 688 |
Knight Probability in Chessboard |
Python |
O(n) |
O(n) |
Explanation |
| 712 |
Minimum ASCII Delete Sum for Two Strings |
Python |
O(n) |
O(n) |
Explanation |
| 718 |
Maximum Length of Repeated Subarray |
Python |
O(n) |
O(n) |
Explanation |
| 740 |
Delete and Earn |
Python |
O(n) |
O(n) |
Explanation |
| 764 |
Largest Plus Sign |
Python |
O(n) |
O(n) |
Explanation |
| 790 |
Domino and Tromino Tiling |
JavaScript |
O(n) |
O(n) |
Explanation |
| 808 |
Soup Servings |
JavaScript |
O(n) |
O(n) |
Explanation |
| 813 |
Largest Sum of Averages |
Python |
O(n) |
O(n) |
Explanation |
| 869 |
Reordered Power of 2 |
Python |
O(n) |
O(n) |
Explanation |
| 931 |
Minimum Falling Path Sum |
JavaScript |
O(n) |
O(n) |
Explanation |
| 935 |
Knight Dialer |
Python |
O(n) |
O(n) |
Explanation |
| 983 |
Minimum Cost For Tickets |
Python |
O(n) |
O(n) |
Explanation |
| 985 |
Sum of Even Numbers After Queries |
Python |
O(n) |
O(n) |
Explanation |
| 1027 |
Longest Arithmetic Subsequence |
Python |
O(n) |
O(n) |
Explanation |
| 1033 |
Moving Stones Until Consecutive |
Python |
O(n) |
O(n) |
Explanation |
| 1039 |
Minimum Score Triangulation of Polygon |
Python |
O(n) |
O(n) |
Explanation |
| 1040 |
Moving Stones Until Consecutive II |
Python |
O(n) |
O(n) |
Explanation |
| 1043 |
Partition Array for Maximum Sum |
Python |
O(n) |
O(n) |
Explanation |
| 1049 |
Last Stone Weight II |
Python |
O(n) |
O(n) |
Explanation |
| 1105 |
Filling Bookcase Shelves |
Python |
O(n) |
O(n) |
Explanation |
| 1140 |
Stone Game II |
C++ |
O(n) |
O(n) |
Explanation |
| 1143 |
Longest Common Subsequence |
JavaScript |
O(n) |
O(n) |
Explanation |
| 1155 |
Number of Dice Rolls With Target Sum |
Python |
O(n) |
O(n) |
Explanation |
| 1262 |
Greatest Sum Divisible by Three |
Python |
O(n) |
O(n) |
Explanation |
| 1268 |
Search Suggestions System |
JavaScript |
O(n) |
O(n) |
Explanation |
| 1315 |
Sum of Nodes with Even-Valued Grandparent |
Python |
O(n) |
O(n) |
Explanation |
| 1423 |
Maximum Points You Can Obtain from Cards |
Python |
O(n) |
O(n) |
Explanation |
| 1626 |
Best Team With No Conflicts |
JavaScript |
O(n) |
O(n) |
Explanation |
| 1641 |
Count Sorted Vowel Strings |
JavaScript |
O(n) |
O(n) |
Explanation |
| 1648 |
Sell Diminishing-Valued Colored Balls |
Python |
O(n) |
O(n) |
Explanation |
| 1690 |
Stone Game VII |
Python |
O(n) |
O(n) |
Explanation |
| 1824 |
Minimum Sideway Jumps |
Python |
O(n) |
O(n) |
Explanation |
| 1911 |
Maximum Alternating Subsequence Sum |
Python |
O(n) |
O(n) |
Explanation |
| 1937 |
Maximum Number of Points with Cost |
Python |
O(n) |
O(n) |
Explanation |
| 1947 |
Maximum Compatibility Score Sum |
JavaScript |
O(n) |
O(n) |
Explanation |
| 1958 |
Check if Move is Legal |
Python |
O(n) |
O(n) |
Explanation |
| 1959 |
Minimum Total Space Wasted With K Resizing Operations |
JavaScript |
O(n) |
O(n) |
Explanation |
| 1986 |
Minimum Number of Work Sessions to Finish the Tasks |
JavaScript |
O(n) |
O(n) |
Explanation |
| 1997 |
First Day Where You Have Been in All the Rooms |
Python |
O(n) |
O(n) |
Explanation |
| 2008 |
Maximum Earnings From Taxi |
Python |
O(n) |
O(n) |
Explanation |
| 2140 |
Solving Questions With Brainpower |
Python |
O(n) |
O(n) |
Explanation |
| 2201 |
Count Artifacts That Can Be Extracted |
JavaScript |
O(n) |
O(n) |
Explanation |
| 2207 |
Maximize Number of Subsequences in a String |
JavaScript |
O(n) |
O(n) |
Explanation |
| 2266 |
Count Number of Texts |
Python |
O(n) |
O(n) |
Explanation |
| 2304 |
Minimum Path Cost in a Grid |
Python |
O(n) |
O(n) |
Explanation |
| 2311 |
Longest Binary Subsequence Less Than or Equal to K |
Python |
O(n) |
O(n) |
Explanation |
| 2369 |
Check if There is a Valid Partition For The Array |
Python |
O(n) |
O(n) |
Explanation |
| 2370 |
Longest Ideal Subsequence |
Python |
O(n) |
O(n) |
Explanation |
| 2466 |
Count Ways To Build Good Strings |
Python |
O(n) |
O(n) |
Explanation |
| 2555 |
Maximize Win From Two Segments |
Python |
O(n) |
O(n) |
Explanation |
| 2761 |
Prime Pairs With Target Sum |
JavaScript |
O(n) |
O(n) |
Explanation |
| 2767 |
Partition String Into Minimum Beautiful Substrings |
Python |
O(n) |
O(n) |
Explanation |
| 2770 |
Maximum Number of Jumps to Reach the Last Index |
C++ |
O(n) |
O(n) |
Explanation |
| 2787 |
Ways to Express an Integer as Sum of Powers |
Python |
O(n) |
O(n) |
Explanation |
| 2825 |
Make String a Subsequence Using Cyclic Increments |
JavaScript |
O(n) |
O(n) |
Explanation |
| 2896 |
Apply Operations to Make Two Strings Equal |
JavaScript |
O(n) |
O(n) |
Explanation |
| 2901 |
Longest Unequal Adjacent Groups Subsequence II |
JavaScript |
O(n) |
O(n) |
Explanation |
| 2915 |
Length of the Longest Subsequence That Sums to Target |
JavaScript |
O(n) |
O(n) |
Explanation |
| 2919 |
Minimum Increment Operations to Make Array Beautiful |
JavaScript |
O(n) |
O(n) |
Explanation |
| 2925 |
Maximum Score After Applying Operations on a Tree |
JavaScript |
O(n) |
O(n) |
Explanation |
| 2930 |
Number of Strings Which Can Be Rearranged to Contain Substring |
JavaScript |
O(n) |
O(n) |
Explanation |
| 2944 |
Minimum Number of Coins for Fruits |
JavaScript |
O(n) |
O(n) |
Explanation |
| 3040 |
Maximum Number of Operations With the Same Score II |
Python |
O(n) |
O(n) |
Explanation |
| 3067 |
Count Pairs of Connectable Servers in a Weighted Tree Network |
JavaScript |
O(n) |
O(n) |
Explanation |
| 3122 |
Minimum Number of Operations to Satisfy Conditions |
Python |
O(n) |
O(n) |
Explanation |
| 3129 |
Find All Possible Stable Binary Arrays I |
JavaScript |
O(n) |
O(n) |
Explanation |
| 3180 |
Maximum Total Reward Using Operations I |
Python |
O(n) |
O(n) |
Explanation |
| 3201 |
Find the Maximum Length of Valid Subsequence I |
JavaScript |
O(n) |
O(n) |
Explanation |
| 3202 |
Find the Maximum Length of Valid Subsequence II |
JavaScript |
O(n) |
O(n) |
Explanation |
| 3290 |
Maximum Multiplication Score |
JavaScript |
O(n) |
O(n) |
Explanation |
| 3316 |
Find Maximum Removals From Source String |
JavaScript |
O(n) |
O(n) |
Explanation |
| 3332 |
Maximum Points Tourist Can Earn |
Python |
O(n) |
O(n) |
Explanation |
| 3376 |
Minimum Time to Break Locks I |
Python |
O(n) |
O(n) |
Explanation |
| 3409 |
Longest Subsequence With Decreasing Adjacent Difference |
Python |
O(n) |
O(n) |
Explanation |
| 3418 |
Maximum Amount of Money Robot Can Earn |
Python |
O(n) |
O(n) |
Explanation |
| 3428 |
Maximum and Minimum Sums of at Most Size K Subsequences |
JavaScript |
O(n) |
O(n) |
Explanation |
| 3469 |
Find Minimum Cost to Remove Array Elements |
Python |
O(n) |
O(n) |
Explanation |
| 3472 |
Longest Palindromic Subsequence After at Most K Operations |
Python |
O(n) |
O(n) |
Explanation |
| 3603 |
Minimum Cost Path with Alternating Directions II |
Python |
O(n) |
O(n) |
Explanation |
| 3627 |
Maximum Median Sum of Subsequences of Size 3 |
Python |
O(n) |
O(n) |
Explanation |
| 3628 |
Maximum Number of Subsequences After One Inserting |
Python |
O(n) |
O(n) |
Explanation |
| 3654 |
Minimum Sum After Divisible Sum Deletions |
Python |
O(n) |
O(n) |
Explanation |
| 3685 |
Subsequence Sum After Capping Elements |
JavaScript |
O(n) |
O(n) |
Explanation |
| 3693 |
Climbing Stairs II |
Python |
O(n) |
O(n) |
Explanation |
| 3702 |
Longest Subsequence With Non-Zero Bitwise XOR |
C++ |
O(n) |
O(n) |
Explanation |
| 3825 |
Longest Strictly Increasing Subsequence With Non-Zero Bitwise AND |
Python |
O(n) |
O(n) |
Explanation |
| 3877 |
Minimum Removals to Achieve Target XOR |
Python |
O(n) |
O(n) |
Explanation |
| 3882 |
Minimum XOR Path in a Grid |
Python |
O(n) |
O(n) |
Explanation |
| 3946 |
Maximum Number of Items From Sale I |
Python |
O(n) |
O(n) |
Explanation |
| 3979 |
Maximum Valid Pair Sum |
Python |
O(n) |
O(n) |
Explanation |
| 3998 |
Transform Binary String Using Subsequence Sort |
JavaScript |
O(n) |
O(n) |
Explanation |
| 4016 |
Maximum Area of Two Non-Overlapping Square Submatrices |
Python |
O(n) |
O(n) |
Explanation |
| 4057 |
Number of Intersecting Interval Pairs II |
Python |
O(n) |
O(n) |
Explanation |