Ad
  • Default User Avatar

    Nice work! A lot of ppl forgot about "^" power operation has to read from right to left, unlike others: "+,-,*,/" that are read on the contrary from left to right.
    Your code pass my little test Assert::That(to_postfix("2+7^5^3*8"), Equals("2753^^8*+"));