Sanjaykumar-IT/dsa-problems

Check No.of bits set to 1

Aperta

#20 aperta il 15 ott 2024

 (1 commento) (0 reazioni) (0 assegnatari)Java (4 fork)auto 404
hacktoberfesthactoberfest2024

Metriche repository

Star
 (1 stella)
Metriche merge PR
 (Metriche PR in attesa)

Descrizione

Given a number, calculate the no.of bits that are set to 1 for its binary representation

Input: 7 Output 3

Input 8 Output 1

Input 0 Output 0

Guida contributor