bottom{XXXX}top of the stack XXXX be the elements of the stack emty { } push(4) { 4 } pop() { } push(7) { 7 } push(8) { 7 8 } pop() { 7 } push(7) { 7 7 } push(9) { 7 7 9 } pop() { 7 7 } push(8) { 7 7 8 } push(5) { 7 7 8 5 }
Comment