Skip to content

Commit abcc0a6

Browse files
authored
Update 7. Reverse Integer.md
1 parent 896669d commit abcc0a6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Diff for: solutions/7. Reverse Integer.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
* Python 3.6:>>> (-7) % 3 // 输出 2
88
# C++
99
## 方法一
10-
```
10+
``` C++
1111
class Solution {
1212
public:
1313
int reverse(int x) {
@@ -25,8 +25,9 @@ public:
2525
}
2626
};
2727
```
28+
2829
## 方法二(较方法一更快)
29-
```
30+
``` C++
3031
class Solution {
3132
public:
3233
int reverse(int x) {

0 commit comments

Comments
 (0)