Given a string, find the length of the longest substring that contains at most K unique characters.
{ "s": "aabacbebebe", "k": 3 }
7
{ "s": "araaci", "k": 2 }
4
{ "s": "world", "k": 4 }
Sign in to Run Code and Submit