greedy

055.Jump-Gamearrow-up-right (E+) 134.Gas-Stationarrow-up-right (H) 221.Maximal-Squarearrow-up-right (H) 229.Majority-Element-IIarrow-up-right (H) 659.Split-Array-into-Consecutive-Subsequencesarrow-up-right (H) 484.Find-Permutationarrow-up-right (H) 386.Lexicographical-Numbersarrow-up-right (H) 624.Maximum-Distance-in-Arrays (M) 665.Non-decreasing-Arrayarrow-up-right (H) 670.Maximum-Swap (M+) 321.Create-Maximum-Numberarrow-up-right (H) 649.Dota2-Senate (H) 330.Patching-Arrayarrow-up-right (H) 683.K-Empty-Slotsarrow-up-right (H) 517.Super-Washing-Machinesarrow-up-right (H) 870.Advantage-Shuffle (M) 781.Rabbits-in-Forestarrow-up-right (M+) 881.Boats-to-Save-Peoplearrow-up-right (H-) 910.Smallest-Range-IIarrow-up-right (M+) 916.Word-Subsets (M+) 936.Stamping-The-Sequencearrow-up-right (H) 948.Bag-of-Tokensarrow-up-right (M+) 968.Binary-Tree-Camerasarrow-up-right (H) 955.Delete-Columns-to-Make-Sorted-IIarrow-up-right (M+) 1040.Moving-Stones-Until-Consecutive-IIarrow-up-right (H) 1121.Divide Array Into Increasing Sequences (TBD) 1191.K-Concatenation-Maximum-Sumarrow-up-right (M+) 1253.Reconstruct-a-2-Row-Binary-Matrixarrow-up-right (M) 1354.Construct-Target-Array-With-Multiple-Sumsarrow-up-right (H-) 1414.Find-the-Minimum-Number-of-Fibonacci-Numbers-Whose-Sum-Is-Karrow-up-right (M+) 1488.Avoid-Flood-in-The-Cityarrow-up-right (H-) 1505.Minimum-Possible-Integer-After-at-Most-K-Adjacent-Swaps-On-Digitsarrow-up-right (H) 1526.Minimum-Number-of-Increments-on-Subarrays-to-Form-a-Target-Arrayarrow-up-right (H-) 1535.Find-the-Winner-of-an-Array-Gamearrow-up-right (M+) 1536.Minimum-Swaps-to-Arrange-a-Binary-Gridarrow-up-right (H-) 1540.Can-Convert-String-in-K-Movesarrow-up-right (M+) 1567.Maximum-Length-of-Subarray-With-Positive-Productarrow-up-right (M+) 1578.Minimum-Deletion-Cost-to-Avoid-Repeating-Lettersarrow-up-right (M) 1585.Check-If-String-Is-Transformable-With-Substring-Sort-Operationsarrow-up-right (H) 1657.Determine-if-Two-Strings-Are-Closearrow-up-right (M) 1702.Maximum-Binary-String-After-Changearrow-up-right (H-) 1717.Maximum-Score-From-Removing-Substringsarrow-up-right (M+) 1727.Largest-Submatrix-With-Rearrangementsarrow-up-right (M) 1744.Can-You-Eat-Your-Favorite-Candy-on-Your-Favorite-Dayarrow-up-right (M) 1788.Maximize-the-Beauty-of-the-Gardenarrow-up-right (M+) 1818.Minimum-Absolute-Sum-Differencearrow-up-right (M+) 1850.Minimum-Adjacent-Swaps-to-Reach-the-Kth-Smallest-Numberarrow-up-right (M+) 1911.Maximum-Alternating-Subsequence-Sumarrow-up-right (M+) 1982.Find-Array-Given-Subset-Sumsarrow-up-right (H)

LIS

300.Longest-Increasing-Subsequencearrow-up-right (M+) 354.Russian-Doll-Envelopesarrow-up-right (H-) 1713.Minimum-Operations-to-Make-a-Subsequencearrow-up-right (H-) 1964.Find-the-Longest-Valid-Obstacle-Course-at-Each-Positionarrow-up-right (M+)

Two-pass distribution

135.Candyarrow-up-right (M+) 1840.Maximum-Building-Heightarrow-up-right (H) 1846.Maximum-Element-After-Decreasing-and-Rearrangingarrow-up-right (M+)

Three-pass

042.Trapping-Rain-Waterarrow-up-right (H-) 334.Increasing-Triplet-Subsequencearrow-up-right (H-) 907.Sum-of-Subarray-Minimumsarrow-up-right (H) 1525.Number-of-Good-Ways-to-Split-a-Stringarrow-up-right (M) 1638.Count-Substrings-That-Differ-by-One-Characterarrow-up-right (M+) 1653.Minimum-Deletions-to-Make-String-Balancedarrow-up-right (M) 1664.Ways-to-Make-a-Fair-Arrayarrow-up-right (M) 1671.Minimum-Number-of-Removals-to-Make-Mountain-Arrayarrow-up-right (M+) 1769.Minimum-Number-of-Operations-to-Move-All-Balls-to-Each-Boxarrow-up-right (M+) 1888.Minimum-Number-of-Flips-to-Make-the-Binary-String-Alternatingarrow-up-right (M+)

State Machine

524.Longest-Word-in-Dictionary-through-Deletingarrow-up-right (M+) 727.Minimum-Window-Subsequencearrow-up-right (H-) 792.Number-of-Matching-Subsequencesarrow-up-right (H-) 1055.Shortest-Way-to-Form-Stringarrow-up-right (M+)

Sort

164.Maximum-Gap (H) 179.Largest-Numberarrow-up-right (H-) 581.shortest-unsorted-continuous-subarrayarrow-up-right (M+) 275.H-Index-IIarrow-up-right (M+) 406.Queue-Reconstruction-by-Heightarrow-up-right (M+) 731.My-Calendar-IIarrow-up-right (M+) 826.Most-Profit-Assigning-Work (M) 1268.Search-Suggestions-Systemarrow-up-right (H-) 1402.Reducing-Dishesarrow-up-right (M) 1520.Maximum-Number-of-Non-Overlapping-Substringsarrow-up-right (H-) 1564.Put-Boxes-Into-the-Warehouse-Iarrow-up-right (M+) 1665.Minimum-Initial-Energy-to-Finish-Tasksarrow-up-right (H-) 1686.Stone-Game-VIarrow-up-right (H-) 1996.The-Number-of-Weak-Characters-in-the-Gamearrow-up-right (M+)

Indexing Sort

041.First-Missing-Positivearrow-up-right (H) 268.Missing-Numberarrow-up-right (H-) 287.Find-the-Duplicate-Numberarrow-up-right (H) 442.Find-All-Duplicates-in-an-Arrayarrow-up-right (M) 448.Find-All-Numbers-Disappeared-in-an-Arrayarrow-up-right (M) 645.Set-Mismatcharrow-up-right (M)

Parenthesis

921.Minimum-Add-to-Make-Parentheses-Validarrow-up-right (M+) 1249.Minimum-Remove-to-Make-Valid-Parenthesesarrow-up-right (M+) 1541.Minimum-Insertions-to-Balance-a-Parentheses-Stringarrow-up-right (M+) 678.Valid-Parenthesis-Stringarrow-up-right (H-) 1963.minimum-number-of-swaps-to-make-the-string-balancedarrow-up-right (M+)

Constructive Problems

324.Wiggle-Sort-IIarrow-up-right (H) 667.Beautiful-Arrangement-IIarrow-up-right (M) 932.Beautiful-Arrayarrow-up-right (H)

Last updated