Skip to content

Commit edf6961

Browse files
authored
Update convert-integer-to-the-sum-of-two-no-zero-integers.cpp
1 parent c425323 commit edf6961

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C++/convert-integer-to-the-sum-of-two-no-zero-integers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ class Solution {
88
string digits;
99
while (curr) {
1010
if (curr % 10 == 0 ||
11-
(curr % 10 == 1 and curr != 1)) {
11+
(curr % 10 == 1 && curr != 1)) {
1212
digits.push_back('2');
1313
curr -= 10; // carry
1414
} else {

0 commit comments

Comments
 (0)