Longest Repeating Character Replacement

Asked at Meta · Coding Questions · Difficulty: Medium · Last asked Jan 9, 2026

You are given a string of uppercase letters and a budget of letter changes. Find how long a run of one repeated letter you can create by changing at most `k` characters.

Loading the problem…