A general purpose linked stack
size
the size of the stack (number of elements in the stack)
stackNode
an envronment containing the current element and the one under
peek()
Get the top element from the stack without changing it
pop()
Pull the top element from the stack removing it from the stack
push(val)
Add an element to the top of the stack
size()
Get the current size of the stack
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.