Difference between Stack and Queue
Page 1 of 1
Difference between Stack and Queue
Stack is a collection of objects that works in LIFO (Last in First out) mechanism while Queue is FIFO (First in First out). This means that the object that is inserted first is removed last in a stack while an object that is inserted first is removed first in a queue.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|