585. Longest Substring with Same Letters
Given a string s and an integer k, you have the option to change any character in the string to any other uppercase English character. You can perform this operation a maximum of k times. Find the length of the longest substring that can be obtained by performing these operations and contains only one type of letter.
The first line contains the string s. The second line contains the integer k.
An integer representing the length of the longest substring.
1 <= s.length <= 10^5 s consists of only uppercase English letters. 0 <= k <= s.length