Hi dear friends,
This problem might be so popular to some of you, but I couldn't be able to do it myself.
The problem: How to delete a node from a single linked list using only one pointer?
Where the target node to be deleted has a key field, and based on a match, let us say at first a sequential search, this node has to be deleted.
What other ways that a singly linked list can be searched through other than the sequential search, assuming perhaps the contents are sorted, does the binary search works here or some other algorithm?
Thank you all
This problem might be so popular to some of you, but I couldn't be able to do it myself.
The problem: How to delete a node from a single linked list using only one pointer?
Where the target node to be deleted has a key field, and based on a match, let us say at first a sequential search, this node has to be deleted.
What other ways that a singly linked list can be searched through other than the sequential search, assuming perhaps the contents are sorted, does the binary search works here or some other algorithm?
Thank you all
Comment