+ 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.

20th Mar 2018, 8:59 PM
Mompati Keetile
Mompati Keetile - avatar
1 Antwort
+ 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
20th Mar 2018, 9:08 PM
Alex
Alex - avatar