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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly