Fix index variable
This commit is contained in:
parent
e2d5a9d693
commit
d52c4c7ed5
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue