What is the basic difference between stack and queue??
Please help me i am unable to find the difference.
How do you differentiate a stack a
Stack is a LIFO (last in first out) data structure. The associated link to wikipedia contains detailed description and examples.
Queue is a FIFO (first in first out) data structure. The associated link to wikipedia contains detailed description and examples.