arrays
An array is a data structure that stores a finite collection of elements, typically of the same type, in consecutive memory locations and accessible by a numeric index. In most implementations, indexing starts at 0 and the length of the array is the number of stored elements. Arrays offer constant-time access to any element, which makes them cache-friendly due to their contiguous layout.
Arrays come in static and dynamic forms. Static arrays have a fixed length determined at creation, so
Common operations include reading and writing by index, querying length, and iterating over elements. In many
Memory considerations are important: elements are stored contiguously, which affects space efficiency and access patterns. Dynamic