Longest Repeating Character Replacement — Sliding Window

Given a row of capital-letter banner tiles and a fixed number of allowed swaps, report the most same-letter tiles that can end up side by side.

Sliding Window · Medium

More in Sliding Window

All algorithm problems