Hi,
I am making a program of Queues and using its class, I wanted to know that can we implement Queues using the link list?
Do we have to make a seperate class for link list and for Queues?
Thanks
Hi,
I am making a program of Queues and using its class, I wanted to know that can we implement Queues using the link list?
Do we have to make a seperate class for link list and for Queues?
Thanks
a linked list can be used as a queue. to make it more queue-like, you may want to wrap it inside another class that only exposes a queue interface.
What can this strange device be?
When I touch it, it gives forth a sound
It's got wires that vibrate and give music
What can this thing be that I found?
Queues can be implemented as a linked list or a circular buffer. Normally queues are first in / first out only, so the main functions are push back (append to end of queue) and pop front (retrieve from front of queue). A generic linked list class includes other types of adding and removing elements from a list.