• Courses
  • Tutorials
  • DSA
  • Data Science
  • Web Tech
July 15, 2024 |40.1K Views

Circular Linked List | Set 1 (Introduction and Applications)

  Share  1 Like
Description
Discussion

Circular linked list is a linked list where all nodes are connected to form a circle. There is no NULL at the end. A circular linked list can be a singly circular linked list or doubly circular linked list.

Advantages of Circular Linked Lists:

1) Any node can be a starting point. We can traverse the whole list by starting from any point. We just need to stop when the first visited node is visited again.

2) Useful for implementation of queue. Unlike this implementation, we don’t need to maintain two pointers for front and rear if we use circular linked list. We can maintain a pointer to the last inserted node and front can always be obtained as next of last.

Circular Linked List _ Set 1: https://www.geeksforgeeks.org/circular-linked-list/