Reverse Bits
Reverse bits of a given 32-bit unsigned integer.

30:00

Reverse Bits
easy
Topics
Companies

Reverse bits of a given 32-bit unsigned integer.

Example 1:
Input: 43261596
Output: 964176192
Constraints:
  • The input is a 32-bit unsigned integer.

Input
arr =43261596

Reverse each bit position

n

43261596

000028001024100120010016000112111081001411000
Variables
VariableValue
n43261596
DepthFunction Call
Stack empty
0/9