Skip to content

Commit d307e31

Browse files
author
prayas7102
committed
clang formating done
1 parent 9d2cc53 commit d307e31

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

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

+3-5
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
public class LowestSetBit {
44

55
/**
6-
* Isolates the lowest set bit of the given number.
7-
* For example, if n = 18 (binary: 10010), the result will be 2 (binary: 00010).
6+
* Isolates the lowest set bit of the given number. For example, if n = 18 (binary: 10010),
7+
* the result will be 2 (binary: 00010).
88
*
99
* @param n the number whose lowest set bit will be isolated
1010
* @return the isolated lowest set bit of n
@@ -13,6 +13,4 @@ public static int isolateLowestSetBit(int n) {
1313
// Isolate the lowest set bit using n & -n
1414
return n & -n;
1515
}
16-
17-
}
18-
16+
}

src/test/java/com/thealgorithms/bitmanipulation/LowestSetBitTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
package com.thealgorithms.bitmanipulation;
22

33
import org.junit.jupiter.api.Test;
4-
5-
import static org.junit.jupiter.api.Assertions.*;
4+
import static org.junit.jupiter.api.Assertions.assertEquals;
65

76
public class LowestSetBitTest {
7+
88
@Test
99
void testLowestSetBitWithPositiveNumber() {
1010
// Test with a general positive number

0 commit comments

Comments
 (0)