mirror of
https://github.com/ShusenTang/LeetCode.git
synced 2026-08-23 23:24:45 +08:00
Update 7. Reverse Integer.md
This commit is contained in:
@@ -7,7 +7,7 @@
|
||||
* Python 3.6:>>> (-7) % 3 // 输出 2
|
||||
# C++
|
||||
## 方法一
|
||||
```
|
||||
``` C++
|
||||
class Solution {
|
||||
public:
|
||||
int reverse(int x) {
|
||||
@@ -25,8 +25,9 @@ public:
|
||||
}
|
||||
};
|
||||
```
|
||||
|
||||
## 方法二(较方法一更快)
|
||||
```
|
||||
``` C++
|
||||
class Solution {
|
||||
public:
|
||||
int reverse(int x) {
|
||||
|
||||
Reference in New Issue
Block a user