r/learnprogramming • • Jan 31 '14

Can someone ELI5 linked lists?

Part of my assignment for my online class involves linked lists and we don't really go over them. I looked around online and I'm slightly confused by all the explainations since I'm fairly new to programming. Can someone dumb it down for me?

77 Upvotes

85 comments sorted by

View all comments

Show parent comment

2

u/FantasticFourSkin Jan 31 '14

I get linked lists and doubly linked lists now, but when would it be useful to use a circular linked list?

3

u/[deleted] Jan 31 '14

They have a few uses, the most simple one would be something I think I read on stack overflow once - a game with multiple players who keep taking turns, or maybe something like monopoly where the last square leads to the "GO" square. Basically things that are circular-y