|
2 | 2 |
|
3 | 3 | Medium
|
4 | 4 |
|
5 | | -Given a signed 32-bit integer `x`, return `x` _with its digits reversed_. If reversing `x` causes the value to go outside the signed 32-bit integer range `[-231, 231 - 1]`, then return `0`. |
| 5 | +Given a signed 32-bit integer `x`, return `x` _with its digits reversed_. If reversing `x` causes the value to go outside the signed 32-bit integer range <code>[-2<sup>31</sup>, 2<sup>31</sup> - 1]</code>, then return `0`. |
6 | 6 |
|
7 | 7 | **Assume the environment does not allow you to store 64-bit integers (signed or unsigned).**
|
8 | 8 |
|
@@ -32,4 +32,4 @@ Given a signed 32-bit integer `x`, return `x` _with its digits reversed_. If rev
|
32 | 32 |
|
33 | 33 | **Constraints:**
|
34 | 34 |
|
35 | | -* `-231 <= x <= 231 - 1` |
| 35 | +* <code>-2<sup>31</sup> <= x <= 2<sup>31</sup> - 1</code> |
0 commit comments