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

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(n$^{2}$)
C. O(n$^{3/2}$)
D. O(1)
 

Tìm kiếm

Back
Top