Skip to content

Commit 8db4ef9

Browse files
authored
indentation improved
1 parent 55b9080 commit 8db4ef9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Others/BrianKernighanAlgorithm.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
*
55
* @author Nishita Aggarwal
66
*
7-
* Brian Kernighan’s Algorithm
7+
* Brian Kernighan’s Algorithm
88
* algorithm to count the number of set bits in a given number
99
* Subtraction of 1 from a number toggles all the bits (from
1010
* right to left) till the rightmost set bit(including the
@@ -24,10 +24,10 @@
2424
public class BrianKernighanAlgorithm {
2525

2626
/**
27-
* @param num: number in which we count the set bits
28-
*
29-
* @return int: Number of set bits
30-
* */
27+
* @param num: number in which we count the set bits
28+
*
29+
* @return int: Number of set bits
30+
* */
3131
static int countSetBits(int num)
3232
{
3333
int cnt = 0;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy