When debugging, novices insert corrective code; experts remove defective code. Richard Pattis


Language Java | Level Intermediate | Category Data structure | August 30, 2015 2:14 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.