Replace the Substring for Balanced String
Filed under DeltaX
The question
Find the minimum length of a substring that can be replaced to make the original string balanced, where each character appears n/4 times.
No write-up yet. Related questions below have one.
Related DeltaX questions
Collected from public candidate posts and coding forums. Updated Nov 2026.