Practice Problem
Number of 1 Bits
Difficulty: Easy
Given a positive integer, return the number of set bits (1s) in its binary representation, also known as the Hamming weight.
Practice Problem
Difficulty: Easy
Given a positive integer, return the number of set bits (1s) in its binary representation, also known as the Hamming weight.