Mark As Completed Discussion

Try this exercise. Click the correct answer from the options.

What is the time complexity of accessing an element at a specific index in an array?

Click the option that best answers the question.

  • O(1)
  • O(n)
  • O(log n)
  • O(n^2)