← Morgan Stanley questions

Reverse Words with Special Characters

Filed under Morgan Stanley

Reverse the words in a string while keeping the positions of non-alphanumeric characters fixed. Words are defined as sequences of alphanumeric characters.

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 Morgan Stanley questions

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