Reverse Polish Notation calculator kata
Useful info:
Reverse Polish Notation algorithm explanation
Online Reverse Polish Notation Calculator to check your results.
Examples:
"0" => 0 "1" => 1 "0 1 +" => 1 "1 2 5 + +" => 8 "0 1 -" => -1 "1 2 5 - -" => 4 "0 1 *" => 0 "1 2 5 * *" => 10 "4 2 /" => 2 "10 5 5 / /" => 10 "4 2 / 5 + 10 * 5 6 - +" => 69 "3 2 1 + *" => 9 "1 2 + 4 * 5 + 3 -" => 14 "5 1 2 + 4 * + 3 -" => 14 "0 1 - 4 5 * *" => -20