Problem 3223 · Medium

Minimum Length of String After Operations

Each letter can be reduced to one copy if its count is odd and to two if it is even, so the total follows from the counts alone.

Open the interactive visualisation