previous | index | next

RA-Stack Mutation: Popping

Original stack:

After popping:

The node containing 1 (the old top) is now no longer pointed to, and therefore a candidate for garbage collection.


previous | index | next