diff --git a/chapter10.tex b/chapter10.tex index b6bd394..9c649c9 100644 --- a/chapter10.tex +++ b/chapter10.tex @@ -496,7 +496,7 @@ go through all $O(n^2)$ pairs of rows and for each pair $(a,b)$ calculate the number of columns that contain a black square in both rows in $O(n)$ time. The following code assumes that $\texttt{color}[y][x]$ -denotes the color in row $y$ in column $x$: +denotes the color in row $y$ and column $x$: \begin{lstlisting} int count = 0; for (int i = 0; i < n; i++) { @@ -727,7 +727,7 @@ we declare an array pair best[1<