You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-6
Original file line number
Diff line number
Diff line change
@@ -79,12 +79,13 @@ Read our [Contribution Guidelines](CONTRIBUTING.md) before you contribute.
79
79
---
80
80
##### Functions:
81
81
82
-
1.[`IsPowerOfTwo`](./math/binary/checkisnumberpoweroftwo.go#L19): IsPowerOfTwo This function uses the fact that powers of 2 are represented like 10...0 in binary, and numbers one less than the power of 2 are represented like 11...1. Therefore, using the and function: 10...0 & 01...1 00...0 -> 0 This is also true for 0, which is not a power of 2, for which we have to add and extra condition.
83
-
2.[`IsPowerOfTwoLeftShift`](./math/binary/checkisnumberpoweroftwo.go#L26): IsPowerOfTwoLeftShift This function takes advantage of the fact that left shifting a number by 1 is equivalent to multiplying by 2. For example, binary 00000001 when shifted by 3 becomes 00001000, which in decimal system is 8 or = 2 * 2 * 2
84
-
3.[`MeanUsingAndXor`](./math/binary/arithmeticmean.go#L11): No description provided.
85
-
4.[`MeanUsingRightShift`](./math/binary/arithmeticmean.go#L15): No description provided.
86
-
5.[`ReverseBits`](./math/binary/reversebits.go#L14): ReverseBits This function initialized the result by 0 (all bits 0) and process the given number starting from its least significant bit. If the current bit is 1, set the corresponding most significant bit in the result and finally move on to the next bit in the input number. Repeat this till all its bits are processed.
87
-
6.[`XorSearchMissingNumber`](./math/binary/xorsearch.go#L10): No description provided.
82
+
1.[`BitCounter`](./math/binary/bitcounter.go#L11): BitCounter - The function returns the number of set bits for an unsigned integer number
83
+
2.[`IsPowerOfTwo`](./math/binary/checkisnumberpoweroftwo.go#L19): IsPowerOfTwo This function uses the fact that powers of 2 are represented like 10...0 in binary, and numbers one less than the power of 2 are represented like 11...1. Therefore, using the and function: 10...0 & 01...1 00...0 -> 0 This is also true for 0, which is not a power of 2, for which we have to add and extra condition.
84
+
3.[`IsPowerOfTwoLeftShift`](./math/binary/checkisnumberpoweroftwo.go#L26): IsPowerOfTwoLeftShift This function takes advantage of the fact that left shifting a number by 1 is equivalent to multiplying by 2. For example, binary 00000001 when shifted by 3 becomes 00001000, which in decimal system is 8 or = 2 * 2 * 2
85
+
4.[`MeanUsingAndXor`](./math/binary/arithmeticmean.go#L11): No description provided.
86
+
5.[`MeanUsingRightShift`](./math/binary/arithmeticmean.go#L15): No description provided.
87
+
6.[`ReverseBits`](./math/binary/reversebits.go#L14): ReverseBits This function initialized the result by 0 (all bits 0) and process the given number starting from its least significant bit. If the current bit is 1, set the corresponding most significant bit in the result and finally move on to the next bit in the input number. Repeat this till all its bits are processed.
88
+
7.[`XorSearchMissingNumber`](./math/binary/xorsearch.go#L10): No description provided.
88
89
89
90
---
90
91
</details><details>
@@ -566,6 +567,16 @@ Read our [Contribution Guidelines](CONTRIBUTING.md) before you contribute.
566
567
567
568
1.[`IsPalindrome`](./strings/palindrome/ispalindrome.go#L26): No description provided.
568
569
570
+
---
571
+
</details><details>
572
+
<summary> <strong> pangram </strong> </summary>
573
+
574
+
---
575
+
576
+
##### Functions:
577
+
578
+
1.[`IsPangram`](./strings/pangram/ispangram.go#L21): No description provided.
0 commit comments