Skip to content

Commit

Permalink
Documentation: fixes #1620 (#1647)
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-henz authored Apr 7, 2024
1 parent 120874e commit dae15c6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/specs/source_arrays.tex
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ \subsection*{Arrays}
let my_array_1 = [];
let my_array_2 = [42, 71, 13];
\end{lstlisting}
Array access of the form $a$\lstinline{[}$i$\lstinline{]} has constant time complexity $\Theta(1)$.
Array assignment the form $a$\lstinline{[}$n$\lstinline{] = }$x$ has a time complexity
$O(n)$.

0 comments on commit dae15c6

Please sign in to comment.