Link to the problem: http://www.spoj.com/problems/ONP/

This problem tests the basic usage of stacks. It is about writing the postfix expression for a given expression.You can find the solution from here: https://github.com/bharaththiruveedula/Algorithms/blob/master/SPOJ/ONP.java

Advertisements