← DSA practice

Longest Repeating Character Replacement

MediumSliding Window

The problem

With k allowed replacements, find the longest substring of a single repeated character.

Full statement, examples and constraints: see the original problem link below.

Solve it on LeetCode