Skip to content

Commit 284474b

Browse files
author
Tushar Borole
committed
Given a string, find the length of the longest substring T that contains at most k distinct characters.
Example 1: Input: s = "eceba", k = 2 Output: 3 Explanation: T is "ece" which its length is 3. Example 2: Input: s = "aa", k = 1 Output: 2 Explanation: T is "aa" which its length is 2.
1 parent 3eacd74 commit 284474b

File tree

3 files changed

+159
-133
lines changed

3 files changed

+159
-133
lines changed

.idea/workspace.xml

Lines changed: 54 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)