write and explain algorithm to insert element at the beginning of simply linked list
Answers
Answered by
0
Answer:
please mark as brainliest and follow me
Explanation:
Steps to insert node at the beginning of singly linked list. Create a new node, say newNode points to the newly created node. Link the newly created node with the head node, i.e. the newNode will now point to head node. Make the new node as the head node, i.e. now head node will point to newNode.
Similar questions