what are queues and stacksstacks refer to a list


What are queues and stacks?

Stacks refer to a list in which all items are accessed and processed on the Last-In-First-Out (LIFO) basis. In a stack, elements are inserted (push operation) and deleted (pop operation) from the similar end called top.

Queues refer to a list in which insertion and deletion of an item is done on the First-In-First-Out (FIFO) basis. The items in a queue are inserted from the single end, called the rear end, and are deleted from the other end, called the front end of the queue.

 

Request for Solution File

Ask an Expert for Answer!!
DOT NET Programming: what are queues and stacksstacks refer to a list
Reference No:- TGS0311058

Expected delivery within 24 Hours