in reply to Re: Re: (Golf) Reversing RPN Notation
in thread (Golf) Reversing RPN Notation
With the hash that I gave, that solution is correct.
Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain
If the hash was, instead
then the code would produce the second, correct solution. In other words, the code's correct, the givens are just wrong :-)%o = ( '-' => 1, '+' => 2, '*' => 3, '/' => 3 );
Dr. Michael K. Neylon - mneylon-pm@masemware.com || "You've left the lens cap of your mind on again, Pinky" - The Brain
In Section
Meditations