Lecture 8 LU4 Data Structures
Lecture 8 LU4 Data Structures
• As we have seen in the above part, the first node of the linked
list is known as the "head," while the last node is called the
"tail."
• The "head" of a linked list refers to the first node in the list.
• The head node contains the data of the first element in the list
and a pointer to the next node (the second element).
Linked List
• The "tail" of a linked list refers to the last node in the list.
• The tail node contains the data of the last element in the list
and usually points to nullptr (or NULL in C/C++), indicating
the end of the list
Types of Linked Lists
• Circular Linked List: The last node points back to the first
node, forming a circular structure.
Operations on Linked List