Code to evaluate a postfix expression
Given an expression in postfix notation, write code to evalute a mathematical expression given in postfix notation. For Example: Input: 4 2 3 + * 6 – Output: 14
Code to convert In-Fix to postfix notation
Given an arithmetic expression in in-fix notation. Write code to convert that algorithm in corresponding post-fix notation. For example: Infix Postfix —— ——– a+b ab+ (a+b)*c ab+c* a+b*c abc*+ a*(b+c)-d/e abc+*de/-
infix, prefix & postfix notations (Polish Notations)
What are Infix, Prefix and Postfix notations ?