← Microsoft questions

Reverse parts of a mathematical expression string

Filed under Microsoft

Given a mathematical expression string like '27*63 + n Parts + 337/32', reverse the overall order of terms while keeping the internal characters of each term intact, outputting '32/337 + n parts +…

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.