Solved

Linked list and vectors

Posted on 2011-02-23
4
332 Views
Last Modified: 2012-05-11
When would you use a linked list vs. a vector, and vice versa?

Thanks!
0
Comment
Question by:dshrenik
  • 3
4 Comments
 
LVL 92

Accepted Solution

by:
objects earned 500 total points
ID: 34967439
use a vector when you need random access to the elements
0
 
LVL 92

Assisted Solution

by:objects
objects earned 500 total points
ID: 34967442
0
 

Author Comment

by:dshrenik
ID: 34967447
An ArrayList is a vector right?
0
 
LVL 92

Expert Comment

by:objects
ID: 34967450
from the perspective of your question, yes.
They are both backed by an array
0

Featured Post

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now