Sanjaykumar-IT/dsa-problems

Check No.of bits set to 1

開放

#20 建立於 2024年10月15日

 (1 則留言) (0 個反應) (0 位負責人)Java (4 個分叉)auto 404
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

貢獻者指南