Lesson 2.3: Stacks Flashcards
A linear data structure that can be accessed only at one of its ends for storing and retrieving data.
Stack
A Stack if called a LIFO Structure. LIFO stands for?
Last In, First Out.
It is an abstract data type that provides an ordered and linear sequence of items.
Stack
A Stack follows a _________ structure.
First in, Last out (FILO) or Last In, First Out (LIFO)
Clear the stack.
clear()
Check to see if the stack is empty.
isEmpty()
Put the element el on the top of the stack.
push(el)
Take the topmost element from the stack.
pop()
Return the topmost element in the stack without removing it.
topEl()
method to insert a value at the end of the linked list
push
method to remove a value from the end of the linked list
pop
Stacks can be implemented in a variety of ways. Arrays can be a possible way. However we cannot implement stacks with the use of Linked lists. True or False.
False