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.
ClearLeftmostSetBit
1 parent 0027f57 commit 199cb02Copy full SHA for 199cb02
src/main/java/com/thealgorithms/bitmanipulation/ClearLeftmostSetBit.java
@@ -1,5 +1,17 @@
1
package com.thealgorithms.bitmanipulation;
2
3
+/**
4
+ * ClearLeftmostSetBit class contains a method to clear the leftmost set bit of a number.
5
+ * The leftmost set bit is the leftmost bit that is set to 1 in the binary representation of a number.
6
+ *
7
+ * Example:
8
+ * 26 (11010) -> 10 (01010)
9
+ * 1 (1) -> 0 (0)
10
+ * 7 (111) -> 3 (011)
11
+ * 6 (0110) -> 2 (0010)
12
13
+ * @author Hardvan
14
+ */
15
public class ClearLeftmostSetBit {
16
17
/**
0 commit comments