112k views
2 votes
Is it possible for the front and rear references in a linked implementation to be equal?

User Tharen
by
8.0k points

1 Answer

4 votes

Answer:

Yes

Step-by-step explanation:

Linked list is a data structure where we can insert any element or update ,delete elements very easily by updating the links.no shift operations are required like in arrays. Efficient data structure for data modification.

In linked list front always points to the starting of the list and rear always points to the last element of the list. In case of circular linked list rear and front points to the same reference. In circular linked list next element of the last element refers to the first element.in this scenario it is possible for the front and rear references to be equal.

User Dboy
by
7.6k points