Count Set Bits

Programming Interview Medium 5 views
Back to Questions

Problem Description

One non-negative integer n is provided. Count how many 1 bits are in binary representation and output it.

Input Format

One integer n.

Output Format

One integer count.

Sample Test Case

Input:
13
Output:
3

Constraints

0

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next