18.02 · Problem
Number of 1 Bits
This problem is part of solulu Pro
Return the number of 1 bits in the binary representation of the positive integer n (its Hamming weight).
Lifetime ₹1,999 ₹999 · Launch offer
Item 145 of 150 · updated 2026-10-13
Return the number of 1 bits in the binary representation of the positive integer n (its Hamming weight).
Item 145 of 150 · updated 2026-10-13