DSA

Circular Queue

Algorithm INPUT: FRONT IS A POINTER WHICH IS USED TO POINT TO THE ELEMENT FROM WHERE DELETION OF ELEMENT TAKES PLACE AND THE ELEMENT TO BE ENQUEUE AND REAR IS A POINTER WHICH POINTS TO THE ELEMENT FROM WHERE INSERTION TAKES PLACEOUTPUT: STACK AFTER PUSH OPERATIONDATA STRUCTURE: STACK USING ARRAY Algo Enqueue Algo Dequeue Code […]

Circular Queue Read More »

Queue Using LinkedList

Algorithm INPUT: FRONT IS A POINTER WHICH IS USED TO POINT TO THE ELEMENT FROM WHERE DELETION OF ELEMENT TAKES PLACE AND THE ELEMENT TO BE ENQUEUE AND REAR IS A POINTER WHICH POINTS TO THE ELEMENT FROM WHERE INSERTION TAKES PLACEOUTPUT: QUEUE AFTER OPERATIONDATA STRUCTURE: QUEUE USING LINKEDLIST Algo Enqueue Algo Dequeue Code Output

Queue Using LinkedList Read More »

Queue using Array

Algorithm INPUT: FRONT IS A POINTER WHICH IS USED TO POINT TO THE ELEMENT FROM WHERE DELETION OF ELEMENT TAKES PLACE AND THE ELEMENT TO BE ENQUEUE AND REAR IS A POINTER WHICH POINTS TO THE ELEMENT FROM WHERE INSERTION TAKES PLACEOUTPUT: STACK AFTER PUSH OPERATIONDATA STRUCTURE: STACK USING ARRAY Algo Enqueue Algo Dequeue Code

Queue using Array Read More »