CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
84
You visited us 84 times! Enjoying our articles? Unlock Full Access!
Question

To insert a node in a circular list at rear position it should be inserted at

A
Front position of queue
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
Front-1 position
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
Rear position
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
D
Rear-1 position
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is A Rear position

To insert a node in a circular list at rear position it should be inserted at rear position.

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

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.

In the circular linked list we can insert elements anywhere in the list whereas in the array we cannot insert element anywhere in the list because it is in the contiguous memory. In the circular linked list the previous element stores the address of the next element and the last element stores the address of the starting element.



927631_917077_ans_9d311ffd73cc4066a363c83db8390f89.PNG

flag
Suggest Corrections
thumbs-up
0
similar_icon
Similar questions
View More
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Factorization of Polynomials
PHYSICS
Watch in App
Join BYJU'S Learning Program
CrossIcon