Simplification Algorithm for Reverse Polish Notation
问题 A couple of days ago I played around with Befunge which is an esoteric programming language. Befunge uses a LIFO stack to store data. When you write programs the digits from 0 to 9 are actually Befunge-instructions which push the corresponding values onto the stack. So for exmaple this would push a 7 to stack: 34+ In order to push a number greater than 9, calculations must be done with numbers less than or equal to 9. This would yield 123. 99*76*+ While solving Euler Problem 1 with Befunge I