CS201 Stack Pratice Problems   Date: _______  Name: ____________________

Do the following Stack Problems.  To recieve all of the points, each value of top must be show along


5
4

3

2

1

0


 Top=____
push
35
push
21
pop
=>____
pop =>____
push
70
push
34
LO
________________


5
4

3

2

1

0


Top=____
push
73
pop
=>____
push
21
push
45
pop
=>____
push
70
pop
=>____
push
65
LO
________________


Do the following Stack Problems


5
4

3

2

1

0


 Top=____
push
25
push
36
push
13
pop
=>____
pop =>____
push
40
push
34
LO
________________
PO
________________


5
4

3

2

1

0


Top=____
push
53
push
32
push
21
push
49
pop
=>____
push
54
PO
________________
pop
=>____
push
91
LO
________________