Progrider

Programming discussion

Board index
General · Open discussion

do I really need to learn linked lists

Second year. Prof says yes. Everybody online says nobody uses them, use arrays. Am I wasting my time?

4 replies

Yes you need them, because of the interview and because of the 30 minutes it takes you to learn what a pointer is. It's not going to take long, stop asking.
The Linux kernel uses them all over the place. Most application code shouldn't, since arrays win on cache behaviour. You should know both and why.
"everybody online" has never shipped anything
A list is one of the two structures the rest of computer science is built from. I'm obviously biased.

Add a reply

Plain text. Public, and removed when the thread expires.

Posts and requests are logged for research. Privacy notice.