|
|
|
|
|
by pmelendez
4010 days ago
|
|
> Linked lists don't suffer from this problem, but at the cost of 1-2 pointers per item. Another cost is the cache misses. If you are doing operations in a sequential fashion using an array would have a significant advantage if the number of elements is high. That's another tradeoff to take in consideration. |
|