Coding Challenge

Reverse Bits

Easy
bit-manipulation

Reverse the bit order of a 32-bit unsigned integer.

Return the integer formed by reversing the order of bits in a 32-bit input.

Examples

Input: n = 43261596

Output: 964176192

Constraints

  • Process all 32 bits

Preparing your coding workspace...