Remove adjacent equal characters repeatedly (ABBABCC to AAB to B)
Filed under Freshworks
The question
Given a string, repeatedly remove adjacent occurrences of the same character, e.g. ABBABCC becomes AAB and then B.
No write-up yet. Related questions below have one.
Related Freshworks questions
Collected from public candidate posts and coding forums. Updated Nov 2026.