Incredible Hulk

Can you please explain what we have to actually perform in this?
Because my code is showing the wrong answer.

hello @rahul_bansal

for this problem u have to tell what is the minimum number of moves need to reach to given number
constraint -> u can only move in power of two.

for this problm u just have to check number of set bit in the given number that will be ur answer.

1 Like

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.