solulubeta
Sign in
NeetCode 150 / Sliding Window
03.03 · Problem

Longest Repeating Character Replacement

Medium Sliding window with max frequency 1 video LC 424 Pro

This problem is part of solulu Pro

s contains only uppercase English letters. You may change at most k characters to any other uppercase letter. Return the length of the longest substring that can be made of a single repeated letter.

Lifetime ₹1,999 ₹999 · Launch offer
Mark this problem as solved when you are finished.

Item 17 of 150 · updated 2026-10-12