Question PRG-JAVA-0014
MediumWhat is the difference between ArrayList and LinkedList in Java?
- A.
ArrayList gives O(1) random access; LinkedList gives O(1) insertion/removal at a known position but O(n) access
- B.
ArrayList can't grow
- C.
Sign up free to see the answer and a step-by-step explanation.