Vectors vs. Linked Lists

What advantages does each one have over the other? Are there any cases in which one should definitely be used rather than the other? Thanks.
They both have different usage scenarios. If you need array like access then a vector is better; if not then you maybe able to get away with using a linked list.

If you're going to do a lot of insertion/deletion definitely go for a linked list. If, instead, you're more likely to traverse it a lot, go for a vector.
Topic archived. No new replies allowed.