Write down the steps to modify a node in linked lists.

➢ Enter the position of the node which is to be modified.
➢ Enter the new value for the node to be modified.
➢ Search the corresponding node in the linked list.
➢ Replace the original value of that node by a new value.
➢ Display the messages as “The node is modified”.

Leave a Reply