What is the time complexity of accessing an element in an array?
A. O(n)
B. O(1)
C. O(log n)
D. O(n log n)
Answer: Option B
Related Questions on Introduction to Data Structures
A. A collection of data values
B. A programming language
C. A set of algorithms
D. A way of organizing and storing data

Join The Discussion