This commit is contained in:
Parvez Khan 2024-08-14 15:05:18 +05:30
parent ca3d16dcce
commit 7728ba4ec3

View File

@ -11,7 +11,7 @@ export default function countSetBits(originalNumber) {
setBitsCount += number & 1;
// Shift number right by one bit to investigate other bits.
number >>>= 1;
number >>= 1;
}
return setBitsCount;