This is one of the most asked question in interviews. Where the interviewer provide you the number and you have to find where the number is power of two of not .
Example :
Input : 128
Output : Yes
Explanation : 2^7 =128, Hence it is power of two.
This is one of the most asked question in interviews. Where the interviewer provide you the number and you have to find where the number is power of two of not .
Example :
Input : 128
Output : Yes
Explanation : 2^7 =128, Hence it is power of two.