LinkedStack
Container of elements that are inserted and removed according to the LIFO principle. This structure is based on SinglyLinkedList.
new LinkedStack()
length
Number of elements in the stack. This field is read only.
Examples:
clear()
isEmpty()
Running time O(1)
Checks whether the stack is empty or not.
Returns:
TRUE if the stack is empty, FALSE otherwise.
Examples:
pop()
push()
top()
Last updated
Was this helpful?