Explain how a stack could be used in the process of evaluating an expression in Reverse Polish notation.

Starting at the left hand side of the expression push values onto stack. Each time operator reached in the expression pop the top two values off the stack and apply the operator to them, then push the new value back onto the stack. When the end of the expression is reached the final value on the stack is the final result.

EF

Related Computing A Level answers

All answers ▸

Write a Pseudocode function that returns the factorial of an integer input.


When data is transmitted over long distances, latency can become an issue. Explain what latency is.


Explain why it is important to check the email address with JavaScript and again when it reaches the server.


Project Euler Question 3: What is the largest prime factor of the number 600851475143?