Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This is a circular linked list, where the ->next pointer points back to the head of the list. It's helpful for iteration tasks, since you can always walk the full list when you get access to one node.

In most cases you use a linked list like this, you don't care about the order of things, just that you can iterate over all items in the list.



No, it's not, as can be seen from the diagrams in the article.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: