1 / 4
Mar 2019

Whats wrong with my code?

  • created

    Mar '19
  • last reply

    Apr '20
  • 3

    replies

  • 803

    views

  • 4

    users

  • 2

    links

A couple of observations:

  1. It handles leading spaces, but not trailing. Any trailing space causes it to output ERROR.
  2. I have an input of three lines of RPN, and it gives four lines of output.
1 year later

How many inputs we should get for this problem? There is no limit mentioned and the question seems something akward. Please resolve this problem