Solved

Linked list and vectors

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Which is the latest version of Apache Tomcatl 3 50
bitbucket vs gitbucket 3 57
advertisement module in core php 4 144
java stored proc example 9 21
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
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.

911 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

23 Experts available now in Live!

Get 1:1 Help Now