Hello there. I have a linked list, wherein every node has a name, age and a unique ID number. I want to delete a node which has the desired ID number. The problem is that maybe the ID number I want to delete isn't in the list yet.
Now, I can solve this with a helper function which first checks if a node with the desired ID exists, then if it does it returns the predecessor of that node or NULL if it doesn't. But I would like to do it without that helper function.
Can you help me?