Given the infix form:
1 * 2 * 3
What is the Reverse Polish notation?
As I see things, two valid answers are:
A. 1 2 3 * * B. 1 2 * 3 *
I believe there is a subtle difference between these two forms, as, mathematically, they both yield the same result.
Also, I think the ambiguity comes from the decision of whether to evaluate the expression as
(1 * 2) * 3 or
1 * (2 * 3).
How does multiplication work in this case by definition? (if it's any relevance I'm asking this in the realm of computer science).