diff options
Diffstat (limited to 'challenge-080/ash/cpp/ch-1.cpp')
| -rw-r--r-- | challenge-080/ash/cpp/ch-1.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/challenge-080/ash/cpp/ch-1.cpp b/challenge-080/ash/cpp/ch-1.cpp index e006218f32..278833993b 100644 --- a/challenge-080/ash/cpp/ch-1.cpp +++ b/challenge-080/ash/cpp/ch-1.cpp @@ -18,7 +18,7 @@ int missing_n(vector<int> n) { if (x > max) max = x; } - for (auto c = 1; c <= max ; c++) { + for (auto c = 1; c < max; c++) { if (!v[c]) { return c; break; |
