Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
LivInTheLookingGlass committed Sep 11, 2024
1 parent 6e8fc69 commit 6adeba8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cplusplus/src/p0017.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ uint64_t EMSCRIPTEN_KEEPALIVE p0017() {
for (uint32_t x = 1; x < 1001; x += 1) {
std::string str = ToString(x);
for (pos = 0, i = 0; i < 2; i++)
while ((pos = str.find(" ", pos)) != std::string::npos)
while ((pos = str.find(filter[i], pos)) != std::string::npos)
str.replace(pos, 1, "");

answer += str.length();
Expand Down

0 comments on commit 6adeba8

Please sign in to comment.