Sat Apr 07, 2007 1:47 pm
Input Stack Postfix
2*3 + 4*5 empty
*3+4*5 empty 2
3+4*5 * 2
+4*5 * 23
4*5 + 23*
*5 + 23*4
5 *+ 23*4
*+ 23*45
+ 23*45*
empty 23*45*+
Input Stack Postfix
2-3+4-5*6 empty
-3+4-5*6 empty 2
3+4-5*6 - 2
+4-5*6 - 23
4-5*6 + 23-
-5*6 + 23-4
5*6 - 23-4+
*6 - 23-4+5
6 *- 23-4+5
*- 23-4+56
- 23-4+56*
empty 23-4+56*-
Input Stack Postfix
(2-3+4)*(5+6*7) empty
2-3+4)*(5+6*7) (
-3+4)*(5+6*7) ( 2
3+4)*(5+6*7) (- 2
+4)*(5+6*7) (- 23
4)*(5+6*7) (+ 23-
)*(5+6*7) (+ 23-4
*(5+6*7) empty 23-4+
(5+6*7) * 23-4+
5+6*7) (* 23-4+
+6*7) (* 23-4+5
6*7) +(* 23-4+5
*7) +(* 23-4+56
7) *+(* 23-4+56
) *+(* 23-4+567
* 23-4+567*+
empty 23-4+567*+*
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.