Ad
  • Custom User Avatar

    The problem said "left-associativity of all operators but ^". So I think "^" has right-associativity.
    For example, "2^3^4" will be interpreted into "23^4^" with your solution. But it should be "234^^" if "^" has right-associativity.