Arrays

Contiguous memory locations that store items of the same type.

Back to Data Structures
arrays
easy

What is the time complexity of accessing an element in an array?

Click to flip

O(1) - Constant time complexity. Arrays provide direct access to elements using indices.

Click to flip back
arraytime-complexity
1 of 3