Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Linked list and vectors

Posted on 2011-02-23
4
335 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Android studio getdrawable(int) is deprecated 4 116
Java exception bubble up 2 21
how to install java on RHEL image on EC2 4 40
java imports not found 4 26
Introduction Java can be integrated with native programs using an interface called JNI(Java Native Interface). Native programs are programs which can directly run on the processor. JNI is simply a naming and calling convention so that the JVM (Java…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
This video teaches viewers about errors in exception handling.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

856 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