Skip to content

Commit 0981233

Browse files
authored
Update confusing-number-ii.cpp
1 parent a4e4d63 commit 0981233

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

C++/confusing-number-ii.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class Solution {
104104
class Solution2 {
105105
public:
106106
int confusingNumberII(int n) {
107-
return f(n) - f(0);
107+
return f(n) - f(0); // f(0) is always 0 and could be ignored
108108
}
109109

110110
private:

0 commit comments

Comments
 (0)