Sanjaykumar-IT/dsa-problems

Check No.of bits set to 1

Offen

#20 geöffnet am 15.10.2024

 (1 Kommentar) (0 Reaktionen) (0 zugewiesene Personen)Java (4 Forks)auto 404
hacktoberfesthactoberfest2024

Repository-Metriken

Stars
 (1 Stern)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

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

Contributor Guide