Vidyalelo
Data Structure · Q8

Introduction to Data Structures

Programming · Data Structure · question 8

Q8

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

A.
O(n)
B.
O(1)
Answer
C.
O(log n)
D.
O(n log n)

Answer: Option B

Solution

Answer: Option B
No explanation is given for this question Let's Discuss on Board