Question: What is the time complexity of accessing an element in an array by index?
Options:
Correct Answer: O(1)
Solution:
Accessing an element in an array by index is O(1) because it requires a constant amount of time regardless of the size of the array.