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…
More Meta interview questions
- Transformer Fundamentals: Attention, Positions and Normalization
- Implement a Two-Hidden-Layer MLP with Backpropagation in NumPy
- Dot Product with Run-Length Encoded Vectors
- Count Lakes Wrapped by a Given Island
- Minimum Remove to Make Valid Parentheses
- K-Means vs Gaussian Mixture Models