Reverse the 32 bits of an unsigned integer.
Difficulty: Medium
Phase: 6 · Mixed Logical Challenges
XP Reward: 20 XP
Topics: Mixed Logical Challenges, Medium
Supported Languages: Python, JavaScript, C, C++, Java
Problem Description
Given unsigned 32-bit integer, reverse its binary representation and print as decimal. Input Format: Read input from standard input (stdin). Output Format: Print the result to standard output (stdout).
Constraints
- -10^9 <= N <= 10^9
Examples
Example 1
Input: 43261596
Output: 964176192
Explanation: Sample execution for input 43261596