LeetCode 424: Longest Repeating Character Replacement — Step-by-Step Visual Trace
Medium — Sliding Window | Two Pointers | Hash Map | String
The Problem
Find the length of the longest substring containing the same letter that you can get after performing at most k character replacements. You can replace any character in the string...
blog.tracelit.dev1 min read