3
Answers

Why we say the time complexity of reading element in a Array is O(1)?

Ask a question
steven

steven

13y
2.1k
1
WHY we say the time complexity of reading element in a Array is O(1)? There is only once operation? What's it? WHY?

i am thinking, there are many built-in method in .Net library, how we define if it is a basic operation when we check the time complexity?

Answers (3)