Step 1/0
Complexity
Best:O(1)
Average:O(n)
Worst:O(n)
Space:O(1)
Description
Fundamental operations on arrays: access, insertion, deletion, and search. The foundation of most data structure implementations.
When to use
Arrays provide O(1) random access and are cache-friendly. Use when index-based access is frequent and size is known.