#static-array
Wiki
›
Algorithms
›
02. Data Structures
›
1. Core Data Structures and Operations
›
1.1 Arrays and Dynamic Arrays
›
Static Array
Static Array A static array stores a fixed number of elements in contiguous memory. Each element has the same type and size, so the address of any index can be computed directly. You use it when the number of elements is known in advance and fast indexed access matters. Problem Given an array $A$ of length $n$, support reading or writing an element at index $i$ where $$ 0 \le...