Python Arrays-question-9

Last Updated :
Discuss
Comments

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

O(n)

O(log n)

O(1)

O(n^2)

Share your thoughts in the comments