[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 341
  • Last Modified:

Linked list and vectors

When would you use a linked list vs. a vector, and vice versa?

Thanks!
0
dshrenik
Asked:
dshrenik
  • 3
2 Solutions
 
objectsCommented:
use a vector when you need random access to the elements
0
 
dshrenikAuthor Commented:
An ArrayList is a vector right?
0
 
objectsCommented:
from the perspective of your question, yes.
They are both backed by an array
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now