Question DSA-LL-0006
EasyWhich is an advantage of a linked list over an array?
- A.
Less memory per element
- B.
Faster random access
- C.
Show answer and explanation
Answer: D
Arrays win on random access and cache locality.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Linked Lists question
Which is an advantage of a linked list over an array?
Less memory per element
Faster random access
Answer: D
Arrays win on random access and cache locality.
Better cache performance
Inserting and deleting at a known position doesn't require shifting elements