+ 3
What is meant by POSTFIX using a stack
Write an algorithm either in program code (with documentation), pseudocode or natural language to evaluate an arithmetical expression in POSTFIX using a Stack.
1 Réponse
+ 3
infix: 5+5
prefix: + 5 5
postfix: 5 5 +
edit:
I just remembered that computerphile actually made a video about using stack for arithmetical expressions in postfix (reverse polish) notation
https://youtu.be/7ha78yWRDlE