Examveda

What is the time complexity of accessing an element in an array by index?

A. O(n)

B. O(1)

C. O(log n)

D. O(n log n)

Answer: Option B


This Question Belongs to Data Structure >> Arrays In Data Structures

Join The Discussion

Related Questions on Arrays in Data Structures