Fix index variable

This commit is contained in:
Antti H S Laaksonen 2017-07-29 11:29:21 +03:00
parent e2d5a9d693
commit d52c4c7ed5
2 changed files with 1 additions and 1 deletions

BIN
book.pdf

Binary file not shown.

View File

@ -356,7 +356,7 @@ for $0 \le x \le n$:
\begin{lstlisting}
count[0] = 1;
for (int x = 1; x <= n; i++) {
for (int x = 1; x <= n; x++) {
for (auto c : coins) {
if (x-c >= 0) {
count[x] += count[x-c];