What is the name for a structure that stores elements in contiguous memory locations, allowing constant-time indexed access?
- A. Array (contiguous memory) ✓
- B. Queue
- C. Binary tree
- D. Trie
Correct answer
A. Array (contiguous memory)
Explanation
Array (contiguous memory) refers to a structure that stores elements in contiguous memory locations, allowing constant-time indexed access.