Collections
Collections are used to organize data so that they can be used efficiently.
Basically, there are 4 fundamental operations supported by collections:
- Insert
- Access / Find
- Update
- Delete
One way we can evaluate a collection is by how quickly it can perform each of these operations.
Some types are suit with small number of data, others for large number of data. Some types have an order to store the data, others don't.
Which collection would you use to solve a given problem and why?