LinkedLists & ArrayLists Review

0.0(0)
Studied by 1 person
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/11

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 4:58 AM on 12/8/25
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai

No analytics yet

Send a link to your students to track their progress

12 Terms

1
New cards

How does a Doubly LinkedList work? Mention:

  • Travesal

  • Nodes/pointers (ex: value, next, prev)

  • It’s a list that allows you to traverse both forwards and backwards.

  • Each node has 3 pointers: value, next that points to the successive node, and prev that points to the previous node.

2
New cards

What are the 2 pros of using Doubly LinkedList?

  • Removes & inserts at both ends of the list efficiently.

  • Traverses backwards easily.

3
New cards

What are the 2 cons of using a Doubly LinkedList?

  • Uses extra memory because it moves backwards and has ‘prev’ pointer.

  • Getting to a specific index still requires O(n) complexity.

4
New cards

What are the 2 best use-cases for Doubly LinkedList?

  • Implementing stacks or queues.

  • When you frequently need to move back and forth in a list.

5
New cards

How does a Singly LinkedList work? Mention:

  • Travesal

  • Nodes/pointers (ex: value, next, prev)

  • You can only move forwards in a Singly LinkedList.

  • Each node has 2 pointers: next and value.

6
New cards

What are the 2 pros of using Singly LinkedList?

  • Uses less memory than Doubly LinkedList.

  • Inserting/removing only at the end is O(1).

7
New cards

What are the 2 cons of using Singly LinkedList?

  • You can’t move backwards.

  • Adding/removing at the end requires an O(n) complexity.

8
New cards

What are the 2 best use-cases for Singly LinkedList?

  • Creating a simple queue where you mostly operate at the head.

  • When you want to use less memory.

9
New cards

How does an ArrayList work?

It’s basically an array that grows dynamically in size that uses indexes instead of pointers like Singly and Doubly LinkedLists do.

10
New cards

What are the 2 pros of an ArrayList?

  • You can get elements quickly by index.

  • Adding an element to the end of the ArrayList is O(1) amortized.

11
New cards

What are the 2 cons of an ArrayList?

  • Inserting/Removing at the front & end requires O(n) complexity.

  • Resizing of the array is also an O(n) complexity.

12
New cards

What’s the best use-case of an ArrayList?

When you’re mainly interested in accessing and retrieving elements rather than modifying the list by inserting/deleting anything.

Explore top notes

Explore top flashcards

flashcards
BIS Final Acronyms
40
Updated 836d ago
0.0(0)
flashcards
Filmgeschiedenis 2 (2022-2023)
134
Updated 1014d ago
0.0(0)
flashcards
Tema 2B: ¿Quién Soy Yo?
65
Updated 68d ago
0.0(0)
flashcards
civil war
25
Updated 1223d ago
0.0(0)
flashcards
Elbow and Forearm
54
Updated 734d ago
0.0(0)
flashcards
BIS Final Acronyms
40
Updated 836d ago
0.0(0)
flashcards
Filmgeschiedenis 2 (2022-2023)
134
Updated 1014d ago
0.0(0)
flashcards
Tema 2B: ¿Quién Soy Yo?
65
Updated 68d ago
0.0(0)
flashcards
civil war
25
Updated 1223d ago
0.0(0)
flashcards
Elbow and Forearm
54
Updated 734d ago
0.0(0)