Skip to content

Commit 414e174

Browse files
committed
2
1 parent d4642fb commit 414e174

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ReverseInteger/ReverseInteger.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ class Solution {
33
int reverse(int x) {
44
// Start typing your C/C++ solution below
55
// DO NOT write int main() function
6+
67
bool minus = false;
78
if (x < 0) {
89
x = -x;
@@ -16,4 +17,4 @@ class Solution {
1617
}
1718
return minus ? (-res) : res;
1819
}
19-
};
20+
};

0 commit comments

Comments
 (0)