0

Solving prefix expression using two stacks

I have to solve a prefix expression use two stacks (one for the operator, and one for the operand). The code is reading the equation and evaluating it wrong and I just can't figure it out. (and YES I have to solve it from left to right). https://code.sololearn.com/c0nvdjIbAQuF/?ref=app

21st Apr 2020, 3:14 AM
Fare Jare
Fare Jare - avatar
1 Réponse
+ 1
Ah, I see. I fixed it, thanks for letting me know.
21st Apr 2020, 4:02 AM
Fare Jare
Fare Jare - avatar