Can someone either explain to me how to use these linked lists or provide a link which might help to explain them? Every time I try to do any problem with them I have issues with the implementation. I think I understand conceptually what they are; a collection of nodes which have a value and a pointer that points to the next element of the linked list. Is there a tutorial somewhere on LeetCode that I missed on how to work with the particular implementation provided?
wow，you used the tricky skill from which Linus once said "People who understand pointers just use a “pointer to the entry pointer”, and initialize that with the address of the list_head. And then as they traverse the list, they can remove the entry without using any conditionals, by just doing a “*pp = entry->next”"