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

0

u/[deleted] Feb 01 '14

This mantra C++ programmers are repeating again and again.

The idea of a linked list is that any element knows how to give you next element. That's it. No pointers needed.

For some reason people think that the concept of pointer and their deep understanding of it, is paramount to everything in programming, including data structures. I don't want to brake the bubble, but there are many many programmers who successfully use very advanced DS without knowing what a pointer is.

The programming has changed.

2

u/jbestbaby Feb 03 '14

The idea of a linked list is that any element knows how to give you next element. That's it. No pointers needed.

Except according to the NIST source you cited which says the links ARE pointers.

I don't want to brake the bubble, but there are many many programmers who successfully use very advanced DS without knowing what a pointer is.

No there aren't.