Skip to content

Commit 09aa914

Browse files
authored
Update CountSetBits.java
1 parent c815ce9 commit 09aa914

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/main/java/com/thealgorithms/bitmanipulation/CountSetBits.java

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@
44
public final class CountSetBits {
55
private CountSetBits() {
66
}
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-
*/
7+
128
public static int countSetBits(int n) {
139
int count = 0;
1410
while (n > 0) {

0 commit comments

Comments
 (0)