← Return

Arrays - DSEasy

An array is a data structure that stores elements of the same type in a contiguous block of memory. In an array, \(A\). of size \(N\), each memory location has some unique index, \(i\) (where \(0 \leq i \leq N\)), that can be referenced as \(A[i]\) or \(A_i\).

Note: If you've already solved our C++ domain's Arrays Introduction challenge, you may want to skip this.

Example

\(A = [1, 2, 3]\)

Return \([3, 2, 1]\).