Computer Science, asked by sharwin6180, 1 year ago

A circular linked list can be used for stack or queue or both

Answers

Answered by Vikashkherwal
0
It is used as both i.e. stack and queue
Answered by Agastya0606
0

A circular linked list can be used for both stack and queue.

  • A circular list is a linked list in which all nodes are connected to form a circle. There is no NULL at the end. A circular list may be a single circular list or a double circular list.
  • Circular lists are useful in applications around the list over and over again. For example, when multiple applications are running on a PC, it is common for the operating system to run operating systems on a list and run them, giving each of them a slice of startup time, and then making them wait. while the CPU is supplied with another application.
  • It is easy for the app to use a circular list so that when it reaches the end of the list it can rotate to the top of the list.

Similar questions