Skip to content

Instantly share code, notes, and snippets.

@gosuri
Created December 17, 2014 07:03
Show Gist options
  • Save gosuri/865478241607ba71b947 to your computer and use it in GitHub Desktop.
Save gosuri/865478241607ba71b947 to your computer and use it in GitHub Desktop.
RPN Question

Write a ruby program that evaluates a Rerverse Polish Notation expression

The input of program will be

5 1 2 + 4 × + 3 −

The output should be

14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment