Queue Implementation Using Array

A queue is a linear data structure that follows an order i.e FIFO(First In First Out), where the element which is inserted at the first will come out first. Unlike Stack, while implementing a queue, an element is inserted from one end and removed from another end. Basically, there are 4 basic operations that are …

Read more

Stack Implementation Using Array

Stack is a linear data structure that follows an order i.e LIFO(Last In First Out), where the element which is inserted at the last will come out first. Basically, there are 4 basic operations that are performed in the stack: Push: Adds an item in the stack. Pop: Removes an item from the stack. The …

Read more