We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c815ce9 commit 09aa914Copy full SHA for 09aa914
src/main/java/com/thealgorithms/bitmanipulation/CountSetBits.java
@@ -4,11 +4,7 @@
4
public final class CountSetBits {
5
private CountSetBits() {
6
}
7
-
8
- /*
9
- * CountSetBits class provides a method to count the number of set bits (1s) in an integer.
10
- * Implementation by Pankaj Kumar Bind (https://github.com/Pankaj-Bind).
11
- */
+
12
public static int countSetBits(int n) {
13
int count = 0;
14
while (n > 0) {
0 commit comments