Longest Repeating Character Replacement
Medium
Strings
Given a string s of uppercase letters and an integer k, you may change at most k characters to any other letter. Print the length of the longest substring containing the same letter after the changes.
Constraints
1 <= len(s) <= 10^5 0 <= k <= len(s)
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.