I've begun teaching stacks in my data structures class. Today I was going over the implementation of a stack using an array, and I used a small stack of strings for my example. I went through several push and pop operations, showing the contents of the array as well as the index to the top of the stack were everytime.
The first three operations
(
Read more... )