Evaluate Postfix | Stack | C++ Solution
Evaluate Postfix, is a Stack related problem and in this post we will see how we can solve this challenge in C++
evaluate postfix expression start scanning: if the char is operand : push into the stack else if it is operator: pop operands from the stack , apply the operator to them and push the result pop the stack element
Please check the main.cpp snippet for the solution.
This solution originally posted at: Github by @susantabiswas
Comments
Leave a comment
You are not LoggedIn but you can comment as an anonymous user which requires manual approval. For better experience please Login.