Two pointers - cocoder39/coco39_LC GitHub Wiki
sliding window
- left should point to first validate element in the window
- while loop is to find next invalid element and evict it so left should not point to an invalid element in the first place
- 3. Longest Substring Without Repeating Characters
- 28. Implement strStr()
- 209. Minimum Size Subarray Sum
- 76. Minimum Window Substring
- 30. Substring with Concatenation of All Words
- 1423. Maximum Points You Can Obtain from Cards
- 340. Longest Substring with At Most K Distinct Characters
- 395. Longest Substring with At Least K Repeating Characters
- 1839. Longest Substring Of All Vowels in Order
- 1838. Frequency of the Most Frequent Element
- 1888. Minimum Number of Flips to Make the Binary String Alternating
- 438. Find All Anagrams in a String
- 1004. Max Consecutive Ones III
delete
tow sum
interesting math proof
Misc
left-right 2 points
2 points to 2 arrays
intersection