wiz-icon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

In a circular linked list, insertion of a record involves modification of

A
One pointer
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
Two pointer
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
Multiple pointer
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
No pointer
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is B Two pointer

In a circular linked list, insertion of a record involves modification of two pointer.

A circular linked list is a linked list in which the last node points to the head or front node making the data structure to look like 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.

For insertion of node in the beginning we need traverse the whole list. Also, for insertion and the end, the whole list has to be traversed. If instead of start pointer we take a pointer to the last node then in both the cases there won’t be any need to traverse the whole list. So insertion in the begging or at the end takes constant time irrespective of the length of the list.



925806_916933_ans_ba17cafb0f9f4c528abf9a8b0270e02c.PNG

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