3 ms·
Linked lists are popular because they are useful in teaching basic data structures and complexity analysis. They can be compared to array lists. But in real li
by pradn 4y ago
Linked lists are popular because they are useful in teaching basic data structures and complexity analysis. They can be compared to array lists.
But in real life the extra cost of allocating a node is way higher than simply copying over a block of memory, for most realistic sized workloads, which are small.