Co-authored-by: nilbuild <4921183+nilbuild@users.noreply.github.com>
861 B
861 B
Array
An array stores a fixed-size sequence of elements in contiguous memory, where each element is accessed directly by its index. This contiguous layout makes reading or writing any element an O(1) operation. Inserting or removing an element in the middle is slower, since it requires shifting the elements after it.
Visit the following resources to learn more: