hacktoberfesthactoberfest2024
倉庫指標
- 星標
- (1 顆星)
- PR 合併指標
- (PR 指標待抓取)
描述
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
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