Link Lists...
can someone explain to me what the advantages of linked lists are and why you would ever use them?
Thanks |
Linked lists are more efficient from a memory standpoint. An array allocates a large chunk of data, and any of that space that's not used by the array just sits in memory. In contrast, linked lists allocate the memory they need on the fly, at the expense of a little CPU power.
|
Quote:
Sounds like spa's teacher isn't very thorough --WetWired
|
Nah, I think my teacher was thorough enough. I was just trying to mention the basics, that's all.
The stuff you brought up could have been inferred from what I wrote, anyway. |
Actually, I was talking to spa, who appears from his questions to be enrolled in a High School level computer science course of some sort.
It's clear that you know what you're talking about --WetWired |
D'oh! :)
|
All times are GMT -6. The time now is 07:55 PM. |
Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
This site is best seen with your eyes open.