no=no>>1;
}
}
int p=1;
int ans=0;
for(int i=0;i<64;i++)
{
cnt[i]%=3;
ans+=(cnt[i]*p);
p=p<<i;
}
cout<<ans<<" ";
return 0;
}
no=no>>1;
}
}
int p=1;
int ans=0;
for(int i=0;i<64;i++)
{
cnt[i]%=3;
ans+=(cnt[i]*p);
p=p<<i;
}
cout<<ans<<" ";
return 0;
}
@arsh_goyal
hello arsh,
what issue u are facing,
also please share ur complete code by saving it here https://ide.codingblocks.com/
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.