โ† Delhivery questions

Smallest Substring Replacement for Stable String

Filed under Delhivery

The question

Given a string of length divisible by 4 containing only G, T, C, and A, find the length of the smallest substring to replace so that the string contains an equal count of all four characters.

No write-up yet. Related questions below have one.

Related Delhivery questions

Collected from public candidate posts and coding forums. Updated Nov 2026.