What is the minimum possible time complexity to find the number of steps to reach the end of an array?

Q & ACategory: Data StructureWhat is the minimum possible time complexity to find the number of steps to reach the end of an array?
Admin Staff asked 4 years ago

What is the minimum possible time complexity to find the number of steps to reach the end of an array?
a) O(n)
b) O(n2)
c) O(n3/2)
d) O(1)

1 Answers
Admin Staff answered 4 years ago

a) O(n)