Week3 - Data Structure (Stack)
Week3 - Data Structure (Stack)
not.
If the stack is full then exit.
If the stack is not full, the stack top is
Infix Notation
Prefix Notation
Postfix Notation
Infix
Prefix
Operator is prefixed to operands ( operator is written
before operands).
+ab
∗+abc
∗+ab+cd
Postfix
ab+c∗
ab+cd+∗