solulubeta
Sign in
Story Problems / Strings
02.03 · Problem

Repaint the Banner

Medium Window: length − max frequency ≤ k Pro

This problem is part of solulu Pro

A banner is a row of coloured tiles written as a string of capital letters. A painter may repaint at most k tiles (any tile to any colour). What is the length of the longest stretch of identical colour tiles he can…

Lifetime ₹2,000 ₹1,000 · Beta offer
Mark this problem as solved when you are finished.

Item 23 of 94 · updated 2026-10-12