SHARE
TWEET

postfix

a guest Feb 17th, 2020 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. IF : 1 / 5 / 5
  2.  
  3. InFixStack   : 1 / 5 / 5
  4. PostFixStack :
  5. OperatorStack:
  6.  
  7. InFixStack   : / 5 / 5
  8. PostFixStack : 1
  9. OperatorStack:
  10.  
  11. InFixStack   : 5 / 5
  12. PostFixStack : 1
  13. OperatorStack: /
  14.  
  15. InFixStack   : / 5
  16. PostFixStack : 1 5
  17. OperatorStack: /
  18.  
  19. InFixStack   : 5
  20. PostFixStack : 1 5
  21. OperatorStack: / /
  22.  
  23. InFixStack   :
  24. PostFixStack : 1 5 5
  25. OperatorStack: / /
  26.  
  27. InFixStack   :
  28. PostFixStack : 1 5 5 /
  29. OperatorStack: /
  30.  
  31. InFixStack   :
  32. PostFixStack : 1 5 5 / /
  33. OperatorStack:
  34.  
  35. Then, to evaluate
  36.  
  37. PostFixStack : 1 5 5 / /
  38. FinalStack   :
  39.  
  40. PostFixStack : 5 5 / /
  41. FinalStack   : 1
  42.  
  43. PostFixStack : 5 / /
  44. FinalStack   : 5 1
  45.  
  46. PostFixStack : / /
  47. FinalStack   : 5 5 1
  48.  
  49. PostFixStack : /
  50. FinalStack   : 1 1
  51.  
  52. PostFixStack :
  53. FinalStack   : 1
  54.  
  55. Answer = 1
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top