...
/DIY: Longest Substring with At Most K Distinct Characters
DIY: Longest Substring with At Most K Distinct Characters
Solve the interview question "Longest Substring with At Most K Distinct Character" yourself in this lesson.
We'll cover the following...
Problem statement
Given a string, find the length of the longest substring T
that contains at most k
distinct characters.
Input
The ...