In this tutorial, you will learn different types of linked list. Also, you will find implementation of linked list in C.
Before you learn about the type of the linked list, make sure you know about the LinkedList Data Structure.
There are three common types of Linked List:
It is the most common. Each node has data and a pointer to the next node.
Singly linked list
Node is represented as:
A three-member singly linked list can be created as:
We add a pointer to the previous node in a doubly-linked list. Thus, we can go in either direction: forward or backward.
Doubly linked listA node is represented as:
A three-member doubly linked list can be created as:
A circular linked list is a variation of a linked list in which the last element is linked to the first element. This forms a circular loop.
Circular linked list
A circular linked list can be either singly linked or doubly linked:
A three-member circular singly linked list can be created as:
119 docs|30 tests
|
1. What are the different types of linked lists? |
2. What is the difference between singly linked list and doubly linked list? |
3. How does a circular linked list differ from a regular linked list? |
4. What is a sorted linked list? |
5. What is a skip list and how does it work? |
|
Explore Courses for Computer Science Engineering (CSE) exam
|