👉
Two Pointers & Window
Opposite ends, fast/slow, fixed & variable windows.
01
Opposite ends
0/7Palindrome, two sum sorted, water, 3-sum.
02
In-place pointers
0/3Remove duplicates, move, squares, colors.
03
Fixed window
0/3Size-k sum, average, vowels, anagrams.
04
Variable window
0/13Longest unique, min window, k distinct.
○Max consecutive onesSilver · 1050○Longest Substring Without Repeating CharactersSilver · 1150○Longest Subarray With Sum At Most KGold · 1300○Smallest Subarray With Sum At Least TargetGold · 1300○Max Consecutive Ones With K FlipsGold · 1350○Fruit Into BasketsGold · 1400○Longest Substring With At Most K DistinctGold · 1400○Longest Repeating Character ReplacementGold · 1450○Substrings Containing All Three CharactersGold · 1500○Continuous SubarraysGold · 1550○Subarrays With K Distinct IntegersPlatinum · 1750○Minimum Window SubstringPlatinum · 1850○Shortest Subarray With Sum At Least KPlatinum · 1850