|
In the old days there were arrays. Basic gave you dynamic arrays that could be redimensioned, even while preserving their data. This was expensive, but it would also be expensive to declare an array as large as you might ever need, and let most of it go wasted. C++ programmers came up with the linked list to solve this problem.
We've come a long way since then. There are linked lists, hash tables, arrays, sorted dictionaries, and the like. In the .NET world, we have typed (generic, like from templates) and untyped (System.Object with boxing and unboxing) collections.
Which ones do you find yourself using regularly?
|