vc++ 二进制文件的查找
Problem statement:
问题陈述:
Find total Number of bits required to represent a number in binary
查找以二进制表示数字所需的总位数
Example 1:
范例1:
input : 10
output: 4
Example 2:
范例2:
input : 32
output : 6
Explanation:
说明:
input Binary representation count of bits
10 1010 4
32 100000 6
We can count required number of bits to represent a number using many ways; here we are using Bit manipulation technique to do the same.
我们可以使用多种方法