Intermediate
Java
Q44 / 100
What is the difference between ArrayList and LinkedList?
Correct! Well done.
Incorrect.
The correct answer is B) ArrayList uses a dynamic array (fast random access); LinkedList uses doubly-linked nodes (fast insert/delete)
B
Correct Answer
ArrayList uses a dynamic array (fast random access); LinkedList uses doubly-linked nodes (fast insert/delete)
Explanation
ArrayList offers O(1) indexed access but O(n) insert/delete. LinkedList offers O(1) insert/delete at ends but O(n) random access.
Progress
44/100