340. Longest Substring with At Most K Distinct Characters
Input:
s = "eceba", k = 2
Output:
3
Explanation:
T is "ece" which its length is 3.Input:
s = "aa", k = 1
Output:
2
Explanation:
T is "aa" which its length is 2.Previous159. Longest Substring with At Most Two Distinct CharactersNext395. Longest Substring with At Least K Repeating Characters
Last updated
Was this helpful?