RPNEVAL - Evaluate simple RPN expression - Problem
Online Judge System
2019-03-17 20:01:41 UTC
Whats wrong with my code?
2019-03-18 19:12:39 UTC
A couple of observations:
It handles leading spaces, but not trailing. Any trailing space causes it to output ERROR.
I have an input of three lines of RPN, and it gives four lines of output.