Skip to content

Commit 2b61d6b

Browse files
authored
Update finding-3-digit-even-numbers.cpp
1 parent 60a08ae commit 2b61d6b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

C++/finding-3-digit-even-numbers.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ class Solution {
2424
return;
2525
}
2626
for (int i = 0; i < size(*cnt); ++i) {
27-
if ((*cnt)[i] == 0 || (empty(*curr) && (i == 0)) ||
27+
if ((*cnt)[i] == 0 ||
28+
(empty(*curr) && (i == 0)) ||
2829
(size(*curr) == k - 1 && i % 2 != 0)) {
2930
continue;
3031
}

0 commit comments

Comments
 (0)