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

贡献者指南