From f782a63c0d114613fc0e41f65e139699cd5a0a97 Mon Sep 17 00:00:00 2001 From: Yang-33 Date: Sat, 5 Oct 2019 15:16:08 +0900 Subject: [PATCH] Fixed range of i in exercise2.4 --- latex/arrays.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) mode change 100644 => 100755 latex/arrays.tex diff --git a/latex/arrays.tex b/latex/arrays.tex old mode 100644 new mode 100755 index 21f30a41..3e8d3c79 --- a/latex/arrays.tex +++ b/latex/arrays.tex @@ -1057,7 +1057,7 @@ \section{Discussion and Exercises} \begin{exc} Implement a method #rotate(a,r)# that ``rotates'' the array #a# so that #a[i]# moves to $#a#[(#i#+#r#)\bmod #a.length#]$, for all - $#i#\in\{0,\ldots,#a.length#\}$. + $#i#\in\{0,\ldots,#a.length-1#\}$. \end{exc} \begin{exc}