Reverse a string while keeping special symbols in place
Filed under PTC
The question
Reverse the characters of a string but ensure that special symbols remain at their original indices.
No write-up yet. Related questions below have one.
Related PTC questions
Collected from public candidate posts and coding forums. Updated Nov 2026.