Longest Substring with At Most K Distinct Characters
Given a string, find the length of the longest substring T that contains at mostkdistinct characters.
Example 1:
Example 2:
Solution
Last updated
Given a string, find the length of the longest substring T that contains at mostkdistinct characters.
Example 1:
Example 2:
Last updated