What is the time complexity for accessing an element in an array if the index…
PYQ CoCubes 2023
What is the time complexity for accessing an element in an array if the index is known?
- A.
O(1)
- B.
O(n)
- C.
O(n log n)
- D.
O(n^2)
Attempted by 1667 students.
Sign up free to check your answer
Sign up freeLoading lesson…

