indentation improved

This commit is contained in:
Nishita Aggarwal
2017-12-30 02:14:48 +05:30
committed by GitHub
parent 55b9080e54
commit 8db4ef901c

View File

@ -4,7 +4,7 @@ import java.util.Scanner;
* *
* @author Nishita Aggarwal * @author Nishita Aggarwal
* *
* Brian Kernighan<EFBFBD>s Algorithm * Brian Kernighans Algorithm
* algorithm to count the number of set bits in a given number * algorithm to count the number of set bits in a given number
* Subtraction of 1 from a number toggles all the bits (from * Subtraction of 1 from a number toggles all the bits (from
* right to left) till the rightmost set bit(including the * right to left) till the rightmost set bit(including the
@ -24,10 +24,10 @@ import java.util.Scanner;
public class BrianKernighanAlgorithm { public class BrianKernighanAlgorithm {
/** /**
* @param num: number in which we count the set bits * @param num: number in which we count the set bits
* *
* @return int: Number of set bits * @return int: Number of set bits
* */ * */
static int countSetBits(int num) static int countSetBits(int num)
{ {
int cnt = 0; int cnt = 0;