Interview Coder drill
Interview Coder drill
Interview Coder drill
10:00
Given an integer, count the 1 bits in its unsigned 32-bit representation. Print the count.
Example 1
Input: n = 11
Output: 3
11 is 1011 in binary.
Constraints
Capture your plan, then rate how clearly you recalled it before submitting.