Can't pass the test cases for Incredable Hulk problem

Can’t pass the test cases for Incredible Hulk problem, although while compiling results are coming perfectly.
Please Help!

Here is my code

hi @swastikswarupmeher you simply have to count the number of set bits in the number.

1 Like

@Ishitagambhir Ohh! got it, thanks. Initially I interpret the question wrongly.

1 Like

@swastikswarupmeher dont forget to mark your doubt as resolved in case of no further queries :slight_smile:

already done ma’am :slight_smile:.

1 Like