What will be the elements of given singly linked list 1 2 3 4 5 with first node as head?
Answers
Answer:
Step-by-step explanation:
- The first and last node of a linked list usually are called the head and tail of the list.
- We can traverse the list starting at the head and ending at the tail.
- The tail node is a special node, where the next pointer is always pointing or linking to a null reference , indicating the end of the list.
- A linked list is respectively by a pointer to the first node of the liked list.
- The first node is called the head.
Answer:
According to the question we need to find out the elements of given singly linked list 1 2 3 4 5 with first node as head.
Every single element is called Node.
There are two parts of every nodes. One is data and the other is pointer.
Data is the value and the pointer points next node in the singly linked list.
The first node of the singly linked list is Head and the last node of the singly linked list is tail.
Step-by-step explanation:
According to the question we need to find out the elements of given singly linked list 1 2 3 4 5 with first node as head.
Every single element is called Node.
There are two parts of every nodes. One is data and the other is pointer.
Data is the value and the pointer points next node in the singly linked list.
The first node of the singly linked list is Head and the last node of the singly linked list is tail.
#SPJ1