DailyCodingProblem icon indicating copy to clipboard operation
DailyCodingProblem copied to clipboard

Problem 13

Open cwetanow opened this issue 6 years ago • 0 comments

This problem was asked by Amazon.

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".

cwetanow avatar Dec 13 '18 06:12 cwetanow