340. Longest Substring with At Most K Distinct Characters (sliding window, hashmap, two pointers),

159 is the same to this

Last updated