Skip to content

Files

Latest commit

7a01c24 · Jan 18, 2022

History

History

Day013

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Jan 18, 2022
Jan 18, 2022
Jan 18, 2022
Jan 18, 2022

Day 13

Given an integer k and a string s, find the length of the longest substring that contains at most k distinct characters.

For example, given s = "abcba" and k = 2, the longest substring with k distinct characters is "bcb".