Solved

Linked list and vectors

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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
numbers ascending pyramid 101 196
JList custom Cell Renderer refresh 15 57
MySqlDump not dumping triggers 1 31
eclipse apache tomcat admin console 52 97
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…
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 will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
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.

803 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