160. Infix to Postfix
Convert an ordinary infix expression into postfix notation.
Read one line containing single lowercase letters as operands, the operators + - * /,
and brackets. Print the postfix form with a single space between tokens.
* and / bind more tightly than + and -. Operators of equal precedence group from
left to right, so a-b-c becomes a b - c -.
Constraints - The line has between 1 and 100000 characters. - Operands are single lowercase letters. - Brackets are always balanced.
Input
A single line containing single lowercase letters as operands, the operators + - * /, and balanced brackets.
Output
Print the postfix form with a single space between tokens.
Hints
Four rungs, in order. The last two open once you have submitted an attempt. A wrong one counts.