what is wrong?
Incredible hulk
hello @samardeep
ur logic is wrong.
for example->
18 , ur answer is 3 i,e first u take 16 then 1 and then 1.
but correct answer should be 2 ie first take 16 and then take 2.
u just have to count the number of set bits in the given number to find the number of steps
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.