akshitagit / CPP

Repository for C++/C codes and algos.
https://github.com/akshitagupta15june
MIT License
493 stars 434 forks source link

Circular Queue Implementation Using Singly Linked List #751

Closed anihar2003 closed 1 month ago

anihar2003 commented 1 month ago

Implement a Circular Queue data structure using a singly linked list. The implementation should provide the following basic queue operations:

Enqueue: Add an element to the rear of the queue. Dequeue: Remove an element from the front of the queue. Display: Print all the elements in the queue in a circular manner. isEmpty: Check if the queue is empty.