thumbnail

The Reverse Polish Notation

How fast can you calculate in RPN?
The examples were generated by a program, note me if there's something too difficult or wrong
Quiz by Pandryf
Rate:
Last updated: February 14, 2024
You have not attempted this quiz yet.
First submittedFebruary 13, 2024
Times taken2
Average score100.0%
Report this quizReport
6:00
Enter answer here
0
 / 15 guessed
The quiz is paused. You have remaining.
Scoring
You scored / = %
This beats or equals % of test takers also scored 100%
The average score is
Your high score is
Your fastest time is
Keep scrolling down for answers and more stats ...
RPN
Result
10 3 * 6 - 6 *
144
4 3 1 + * 5 *
80
6 6 * 5 1 - *
144
5 8 * 6 1 * -
34
4 3 - 7 - 7 +
1
RPN
Result
1 10 + 7 + 8 +
26
6 3 * 2 3 + +
23
10 1 * 5 + 2 *
30
3 5 3 - - 6 +
7
3 3 1 10 * + +
16
RPN
Result
8 7 + 1 9 - -
23
1 4 * 10 1 * *
40
5 9 + 4 * 10 -
46
2 3 6 5 * + +
35
3 7 * 5 6 - -
22
2 Comments
+1
Level 59
Feb 13, 2024
explain
+1
Level 61
Feb 14, 2024
there's a stack of numbers, now reading from left to right:

1) if there's a number, you stack it on the top

2) if there's an operating sign, you do what it says with the top 2 numbers from the stack, e.g. if the top number is 2, there's a 7 right under it, and you have a "^", you raise 7 to the 2nd power and get 49 - the result replaces the numbers used to create it - in this example, the stack of [5, 12, 8, 7, 2] becomes [5, 12, 8, 49]