← Microsoft questions

Reverse Words While Keeping Special Characters

Filed under Microsoft

Reverse the words in a given string while keeping all special characters and spaces in their original absolute positions.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Microsoft questions

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