int hammingWeight(uint32_t n) {
int x=1,ans=0;;
while(n)
{
if(n&x)
ans++;
n=n>>1;
}
return ans;
}
int hammingWeight(uint32_t n) {
int x=1,ans=0;;
while(n)
{
if(n&x)
ans++;
n=n>>1;
}
return ans;
}