It helped me in lecture and I think it might help clarify here, Node 6 still exists, and is pointing to Node 10, it just doesn't have 5 pointing to it, so can't ever be found.
This comment was marked helpful 4 times.
azeyara
Another situation, as mentioned in the lecture, is simultaneous deletion. An example, considering a linked list of 3->5->10->11->18, is when deleting 5 and 10 simultaneously. 10 will get deleted and 5 will point to 10. It will cause the loss of the entire linked list, except the head.
This comment was marked helpful 0 times.
shabnam
@cwswanso totally agree with you. That helped me too!
It helped me in lecture and I think it might help clarify here, Node 6 still exists, and is pointing to Node 10, it just doesn't have 5 pointing to it, so can't ever be found.
This comment was marked helpful 4 times.
Another situation, as mentioned in the lecture, is simultaneous deletion. An example, considering a linked list of 3->5->10->11->18, is when deleting 5 and 10 simultaneously. 10 will get deleted and 5 will point to 10. It will cause the loss of the entire linked list, except the head.
This comment was marked helpful 0 times.
@cwswanso totally agree with you. That helped me too!
This comment was marked helpful 0 times.