• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 344
  • 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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

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