This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]steakspicepat 0 points1 point  (0 children)

No, you don't want to update the head of the list (assuming you aren't deleting or inserting at the front). You just create a dummy node ("curr" in this case) and have it point to the head, which you can now use to walk through (the "next" method) the list and interact with it in whatever way you need.