Queue & Stack Flashcards
1
Q
Stack
A
A linear data structure.
Last In First Out (LIFO)
Stores data in a way that last piece of data stored is First one retrieved.
2
Q
Queue
A
Is linear data structure
First in First out( FIFO)
Queue has beginning and end called front and back of the queue.
Data enters queue at one end and leaves at other end.