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.
1 parent 8949aa1 commit a6d1cf3Copy full SHA for a6d1cf3
src/main/java/com/thealgorithms/bitmanipulation/CountLeadingZeros.java
@@ -1,5 +1,15 @@
1
package com.thealgorithms.bitmanipulation;
2
3
+/**
4
+ * CountLeadingZeros class contains a method to count the number of leading zeros in the binary representation of a number.
5
+ * The number of leading zeros is the number of zeros before the leftmost 1 bit.
6
+ * For example, the number 5 has 29 leading zeros in its 32-bit binary representation.
7
+ * The number 0 has 32 leading zeros.
8
+ * The number 1 has 31 leading zeros.
9
+ * The number -1 has no leading zeros.
10
+ *
11
+ * @author Hardvan
12
+ */
13
public class CountLeadingZeros {
14
15
/**
0 commit comments