Longest Repeating Character Replacement
Medium📝 Description
Find the length of the longest substring with same letters after k replacements
Input Format
String s and integer k
Output Format
Maximum length
Constraints
1 ≤ s.length ≤ 10^5
🔍 Sample Input
"AABABBA"
1
✅ Sample Output
4
Code Editor
Please login to run and submit code.
Results
Suggested Solution
Shortcuts: Ctrl+Enter to submit, Ctrl+Shift+R to run