// solved through bits multiplication
bool isPowerofTwo(long long n){
int sum=0;
while(n!=0){
int a=n%2;
sum=sum*10+a;
n=n/2;
}
if(sum==1){
return true;
}
return false;
}
0 Comments