Mind blowing SEO improving and Google rank increasing Signature Rotator SEO Tool.

Thread: 

What is difference between Stack and Queue?

Ads
banner
banner
banner
banner
rahhulkumar1 Offline referral

Posts: 53
Joined: Oct 2015
Reputation: 1

#1
Member
What’s difference between Stack and Queue?
manvisen Offline referral

Posts: 40
Joined: Jul 2016
Reputation: 0

#2
Junior Member
In stack objects are inserted and removed at the same end. In Queue objects are inserted and removed from different ends.
Stack operations are called push and pop.In queue operation are called enqueue and dequeue.
Stack is a LIFO data structure and Queue is a FIFO data structure.
spiderblue Offline referral

Posts: 25
Joined: Nov 2016
Reputation: 0

#3
Junior Member
Hi,

Items are inserted at other end called 'rear' of the queue. The first item inserted is the first to be removed (FIFO). It allows access to only one data item: the last item inserted. ... A stack is sometimes referred to as a Last-In-First-Out (LIFO) or First-In-Last-Out (FILO) structure.





User(s) browsing this thread: 1 Guest(s)