Skip to content

Commit 2d2f8be

Browse files
committed
1218提交
1 parent 537b929 commit 2d2f8be

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

algorithms/Reverse Integer.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ var reverse = function(x) {
1212
else{
1313
result=StringReverse(xString)-0;
1414
}
15-
if(result<=Math.pow(2,31)&&result>=-Math.pow(2,31)){
15+
if(result<=Math.pow(2,31)-1&&result>=-Math.pow(2,31)){
1616
return result;
17-
1817
}
1918
else{
2019
return 0;

0 commit comments

Comments
 (0)