loading...

re: Singly Linked List: A Python Implementation VIEW POST

TOP OF THREAD FULL DISCUSSION
re: Thank for you the comment! That's an interesting observation about the graph. But there's one thing about that I don't understand. Wouldn't the cod...

In this case, whatever the calling code was would need to save the head pointer in the calling function and pass it around. This isn't exactly an antipattern as we do need to pass around both a string and its length in some languages like C, but it obviously isn't preferable.

Thanks for explaining that for me.

code of conduct - report abuse