--%>

Define stacks and queues

Define stacks and queues?

E

Expert

Verified

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

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

   Related Questions in DOT NET Programming