The best programmers are not marginally better than merely good ones. They are an order-of-magnitude better, measured by whatever standard: conceptual creativity, speed, ingenuity of design, or problem-solving ability. Randall E. Stross

Postfix to infix

Language Java | Level Intermediate | Category Data structure | August 30, 2015 1:53 pm

Data structure Description

Infix notation is the notation commonly used in arithmetical and logical formulae and statements. Postfix also known as Reverse Polish Notation is a notational system where the operation or function follows the arguments.

Write a program convert from Postfix notation to infix notation using the stack.

Postfix: 5 3 + 12 * 3 /
Infix (5 + 3) * 12 / 3



Postfix Expression: abc*+
Infix Expression: (a+(b*c))



No comments available!

Please login to add comments.