top of page
reverse.png

Reverse Bits

Problem : 

Given a non-negative integer num, write a program to return the number obtained after reversing the bits of num.

Problem Note : 

IThe actual binary representation of the number is being considered for reversing the bits, no leading 0 is being considered.

Example : 

 

Input: 13

​

Output: 11

 

Explanation: Binary representation of 13 is 1101. After reversing the bits we get 1011 which is equal to 11.

Solution :

reverse_1[1].jpg
reverse_2[1].jpg
reverse_3[1].jpg

First Screen is the landing page of the application.

second Screen, Enter the number and just click the button FIND REVERSE BIT NUMBER

third Screen, tells you about the result 

bottom of page