Longest Sub{string,array}
Longest Consecutive x with k impurities (1-pass)
while shrink
1004. Max Consecutive Ones III
487. Max Consecutive Ones II
485. Max Consecutive Ones
1493. Longest Subarray of 1's After Deleting One Element
Medium2 solutionsexplanationanalysis2 playgrounds
Solutions:
Longest Consecutive x with k impurities (>1-pass)
while shrink
1869. Longer Contiguous Segments of Ones than Zeros
Easy2 solutionsexplanationanalysis2 playgrounds
Solutions:
2024. Maximize the Confusion of an Exam
424. Longest Repeating Character Replacement
Medium3 solutionsexplanationanalysis3 playgrounds
Solutions:
Hashmap - Unique Elements
while shrink
3. Longest Substring Without Repeating Characters
Medium2 solutionsexplanationanalysis2 playgrounds
Solutions:
1695. Maximum Erasure Value
Hashmap - K Distinct Elements
while shrink
340. Longest Substring with At Most K Distinct Characters
Medium2 solutionsexplanationanalysis2 playgrounds
Solutions:
159. Longest Substring with At Most Two Distinct Characters
Medium2 solutionsexplanationanalysis2 playgrounds
Solutions:
904. Fruit Into Baskets
1446. Consecutive Characters
Depends on prev
674. Longest Continuous Increasing Subsequence
Easy1 solutionexplanationanalysis1 playground
Solutions:
1839. Longest Substring Of All Vowels in Order
Medium1 solutionexplanationanalysis1 playground
Solutions:
978. Longest Turbulent Subarray
Miscellaneous
1208. Get Equal Substrings Within Budget
1658. Minimum Operations to Reduce X to Zero
Medium1 solutionexplanationanalysis1 playground
Solutions: