Reverse Bits
Given a non-negative integer num, write a program to return the number obtained after reversing the bits of num. Example 1 Input: 13 Output: 11 Explanation: Binary representation of 13 is 1101. After…
Given a non-negative integer num, write a program to return the number obtained after reversing the bits of num. Example 1 Input: 13 Output: 11 Explanation: Binary representation of 13 is 1101. After…