I did not understand the question

Is this incomplete or something, or you can please explain the question. Don’t give hint. I want solve on my own.

Hey @PranavM16
question is simple you are given two integers a and b, you have count set bits for each number between a and b and output their sum.

Say a is 4 and b is 6
Then bits(4)+bits(5)+bits(6)==1+2+2=5

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.

1 Like