The Blind 75 Leetcode Series: Longest Repeating Character Replacement

Jonathan Chao
4 min readNov 7, 2023
Photo by Chris Ried on Unsplash

Today, we are working on 424. Longest Repeating Character Replacement

You are given a string s and an integer k. You can choose any character of the string and change it to any other uppercase English character. You can perform this operation at most k times.

Return the length of the longest substring containing the same

--

--

Jonathan Chao

I am a software developer who has been in this industry for close to a decade. I share my experience to people who are or want to get into the industry