1.

Write the steps for deleting a node from a linked list?

Answer»

Deletion from a linked list It is the removal of a node from the data structure. 

Step 1: Get the address of the previous node (POS – 1) and next node (POS + 1) in the pointers Pre-Node and Post-Node respectively. 

Step 2: Copy the contents of Post-Node into the link part of node at position (POS -1)

Step 3: Free the node at position POS.



Discussion

No Comment Found