120k views
1 vote
Explain the steps that are needed to remove the data items from linked list

1 Answer

3 votes

Step-by-step explanation:

Iterative Method:

To delete a node from the linked list, we need to do the following steps.

1) Find the previous node of the node to be deleted.

2) Change the next of the previous node.

3) Free memory for the node to be deleted.

User Yann Coleu
by
4.4k points