Code
The highlighted line runs next. The pill shows the live values in the running call.
Variables
The data structures the code is building
Digits
Each digit moves from the end of x to the end of res
Given a signed 32-bit integer x, return x with its digits reversed. If the result falls outside [−2³¹, 2³¹ − 1], return 0. Don't use integers outside the 32-bit range.
The highlighted line runs next. The pill shows the live values in the running call.
The data structures the code is building
Each digit moves from the end of x to the end of res
|x| has at most 10 digits. The highlighted row is the solution being traced.
Keyboard: ← → step, Space play or pause. x from −2147483648 to 2147483647.