Code
The highlighted line runs next. The pill shows the live values in the running call.
Variables
The data structures the code is building
Bits
Bit 31 on the left; lines show where each bit goes
Given a 32-bit unsigned integer n, reverse the bits of its binary representation (bit 0 becomes bit 31, bit 1 becomes bit 30, …) and return the result.
The highlighted line runs next. The pill shows the live values in the running call.
The data structures the code is building
Bit 31 on the left; lines show where each bit goes
The input is always 32 bits wide. The highlighted row is the solution being traced.
Keyboard: ← → step, Space play or pause. n as a decimal from 0 to 4294967295, or as 32 binary digits.