leetle

Daily challenge for 2025-05-16

136. Balling Ones

Write a function solve that counts the number of 1 bits in the binary representation of an integer.

Example:
Input: 11
Output: 3
Explanation: 11 in binary is 1011, which has three 1 bits.

Run this challenge interactively in Python or JavaScript when the app loads.