LC: 340. Longest Substring with At Most K Distinct Characters
https://leetcode.com/problems/longest-substring-with-at-most-k-distinct-characters/
Input: s = "eceba", k = 2
Output: 3
Explanation: The substring is "ece" with length 3.Input: s = "aa", k = 1
Output: 2
Explanation: The substring is "aa" with length 2.PreviousLC: 1062. Longest Repeating SubstringNextLC: 159. Longest Substring with At Most Two Distinct Characters
Last updated