Question DSA-ARR-0005
EasyWhich data structure stores elements of the same type in contiguous memory locations?
- A.
Array
- B.
Graph
- C.
Show answer and explanation
Answer: A
Contiguous storage is what makes indexed access O(1).
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
Arrays question
Which data structure stores elements of the same type in contiguous memory locations?
Array
Graph
Answer: A
Contiguous storage is what makes indexed access O(1).
Linked list
Tree