GOPISETTI NAVADEEP
93811614b8
feat: add Count Set Bits algorithm ( #7072 )
...
* feat: add Count Set Bits algorithm (issue #6931 )
* fix: correct CountSetBits algorithm logic
* style: apply clang-format to CountSetBits files
* fix: correct test expectations for CountSetBits
* fix: correct test expectations for CountSetBits
2025-11-16 12:54:43 +01:00
Yajunesh MR
82ff14c36e
feat: Add BitRotate utility for circular bit rotations ( #7011 )
...
* feat: Add BitRotate utility for circular bit rotations
* feat: Add BitRotate utility for circular bit rotations
* feat: Add BitRotate utility for circular bit rotations
* fix: Remove trailing spaces and add newline at EOF
---------
Co-authored-by: Yajunesh M R <yajunesh@Yajuneshs-MacBook-Pro.local >
2025-11-03 22:12:24 +01:00
Yash Rajput
8d14b492fd
Added CountBitsFlip algo ( #6603 )
...
* Added CountBitsFlip aldo
* checkstyle fix
* checkstyle fix
---------
Co-authored-by: Alx <alexanderklmn@gmail.com >
2025-10-03 12:52:53 +03:00
Hetu Kariya
fb12971fd6
Added BitwiseGCD.java and BitwiseGCDTest.java ( #6545 )
2025-09-27 13:02:34 +02:00
Oleksandr Klymenko
2f2a32b8c2
testing: improve test coverage ParityCheckTest ( #6389 )
...
testing: improve test coverage ParityCheckTest
Co-authored-by: Deniz Altunkapan <93663085+DenizAltunkapan@users.noreply.github.com >
2025-07-17 20:03:24 +00:00
Oleksandr Klymenko
25aaa6e064
refactor: OnesComplement Tests Using Parameterized Inputs ( #6375 )
...
refactor: OnesComplement Tests Using Parameterized Inputs
Co-authored-by: Deniz Altunkapan <93663085+DenizAltunkapan@users.noreply.github.com >
2025-07-14 05:51:17 +00:00
Oleksandr Klymenko
350f149657
Add parameterized tests for BitSwap ( #6347 )
2025-07-06 20:03:02 +03:00
Strange Developer
df0c997e4b
General performance improvement ( #6078 )
2024-11-01 19:52:42 +02:00
Hardik Pawar
fd14016c86
Enhance docs, add more tests in ReverseBits ( #5859 )
2024-10-29 18:17:30 +00:00
Hardik Pawar
54567e2ed3
Enhance docs, add more tests in SwapAdjacentBits ( #5861 )
2024-10-29 18:12:46 +00:00
Hardik Pawar
709d9771e2
Add GenerateSubsets algorithm ( #5867 )
2024-10-26 15:23:50 +00:00
Hardik Pawar
94daff0895
Add NextHigherSameBitCount algorithm ( #5865 )
2024-10-26 14:31:11 +00:00
Hardik Pawar
e4ef072f83
Add FirstDifferentBit algorithm ( #5866 )
2024-10-26 09:43:56 +00:00
Hardik Pawar
cdf509fc06
Add OneBitDifference algorithm ( #5864 )
2024-10-26 09:26:46 +00:00
Hardik Pawar
8551addbf2
Add ModuloPowerOfTwo algorithm ( #5863 )
2024-10-26 09:22:29 +00:00
Hardik Pawar
fb85a4884f
Enhance docs, add more tests in TwosComplement ( #5862 )
2024-10-26 09:18:17 +00:00
Hardik Pawar
ef7f2e97e3
Enhance docs, add more tests in SingleBitOperations ( #5860 )
2024-10-26 09:14:20 +00:00
Hardik Pawar
b0cef5b571
Enhance docs, add more tests in NumbersDifferentSigns ( #5858 )
2024-10-26 09:05:22 +00:00
Hardik Pawar
2ec4a1f532
Enhance docs, add more tests in NumberAppearingOddTimes ( #5857 )
2024-10-26 09:01:22 +00:00
Hardik Pawar
009c2b38af
Enhance docs, add more tests in ArrayCombination ( #5842 )
2024-10-26 08:50:22 +00:00
Hardik Pawar
788f4d8b28
Enhance docs, add more tests in NonRepeatingNumberFinder ( #5843 )
2024-10-26 08:46:40 +00:00
Hardik Pawar
e291516dc9
Refactor BCD Conversion docs and add more tests ( #5762 )
2024-10-13 11:20:20 +00:00
Tanmay-Singh3004
6af7f7b126
Add Xs3Conversion algorithm ( #5743 )
2024-10-13 11:30:09 +03:00
Tanmay-Singh3004
6682c7c76e
Add BcdConversion algorithm ( #5742 )
2024-10-13 09:22:57 +03:00
vansh kabra
4a03f42061
Add algo for BooleanGateslogic ( #5717 )
2024-10-12 20:58:52 +02:00
Tuhinm2002
1617ed1368
feat : new bit manipulation algo FindNthBit of a number ( #5731 )
...
* feat : new algo uniquesubseqcount
* Update UniqueSubsequencesCount.java
* Update UniqueSubsequencesCountTest.java
* Update UniqueSubsequencesCount.java
* Update UniqueSubsequencesCount.java
* Update UniqueSubsequencesCount.java
* Update UniqueSubsequencesCount.java
* Update UniqueSubsequencesCount.java
* Update UniqueSubsequencesCount.java
* Update UniqueSubsequencesCountTest.java
* Update UniqueSubsequencesCount.java
* Update UniqueSubsequencesCountTest.java
* Update UniqueSubsequencesCount.java
* Update UniqueSubsequencesCountTest.java
* Update UniqueSubsequencesCountTest.java
* Update UniqueSubsequencesCountTest.java
* Update UniqueSubsequencesCount.java
* feat : new bitmanipulation algo
* feat : new bit algo
* Update FindNthBitTest.java
* Update FindNthBit.java
---------
Co-authored-by: Alex Klymenko <alexanderklmn@gmail.com >
2024-10-12 20:47:42 +02:00
Hardik Pawar
8722598434
Add ParityCheck algorithm ( #5704 )
2024-10-12 10:28:42 +03:00
Hardik Pawar
eba6823c3a
Add HigherLowerPowerOfTwo algorithm ( #5707 )
2024-10-12 09:45:28 +03:00
Hardik Pawar
4d6dd13b56
Add BinaryPalindromeCheck algorithm ( #5708 )
2024-10-12 09:36:29 +03:00
Hardik Pawar
bf0377f44b
Add HammingDistance algorithm ( #5706 )
2024-10-12 09:31:04 +03:00
Hardik Pawar
c0ffbb0e45
Add GrayCodeConversion algorithm ( #5705 )
2024-10-12 09:26:04 +03:00
Hardik Pawar
b8633ad14c
feat: Add countLeadingZeros new algorithm with Junit tests ( #5703 )
2024-10-12 09:19:55 +03:00
Hardik Pawar
966b4e369d
feat: Add ClearLeftmostSetBit new algorithm with Junit tests ( #5702 )
2024-10-12 09:00:12 +03:00
Tuhinm2002
d4fff30eaa
feat : new bit manipulation algo Single element in an array ( #5689 )
...
* feat : new algo uniquesubseqcount
* Update UniqueSubsequencesCount.java
* Update UniqueSubsequencesCountTest.java
* Update UniqueSubsequencesCount.java
* Update UniqueSubsequencesCount.java
* Update UniqueSubsequencesCount.java
* Update UniqueSubsequencesCount.java
* Update UniqueSubsequencesCount.java
* Update UniqueSubsequencesCount.java
* Update UniqueSubsequencesCountTest.java
* Update UniqueSubsequencesCount.java
* Update UniqueSubsequencesCountTest.java
* Update UniqueSubsequencesCount.java
* Update UniqueSubsequencesCountTest.java
* Update UniqueSubsequencesCountTest.java
* Update UniqueSubsequencesCountTest.java
* Update UniqueSubsequencesCount.java
* feat : new bitmanipulation algo
---------
Co-authored-by: Alex Klymenko <alexanderklmn@gmail.com >
2024-10-10 10:32:02 +03:00
Lakshyajeet Singh Goyal
6535d4755d
Add SwapAdjacentBits algorithm ( #5634 )
2024-10-09 23:02:41 +03:00
Abhinay Verma
f170078b8b
Add Ones & Twos Complement in BitManipulation ( #5604 )
2024-10-09 22:45:15 +03:00
Lakshyajeet Singh Goyal
b54cc21ade
Add NumberAppearingOddTimes algorithm ( #5633 )
2024-10-08 21:42:24 +03:00
Prayas Kumar
357fc6a271
Add LowestSetBit ( #5567 )
2024-10-07 12:18:25 +00:00
Gopi Gorantala
b190cb72de
Add countsetbits problem with lookup table approach ( #5573 )
2024-10-06 07:15:32 +00:00
B Karthik
042d458d34
fix: change location of others to correct places ( #5559 )
2024-10-04 17:47:50 +00:00
Samuel Facchinello
74e51990c1
style: enable InvalidJavadocPosition in checkstyle ( #5237 )
...
enable style InvalidJavadocPosition
Co-authored-by: Samuel Facchinello <samuel.facchinello@piksel.com >
2024-06-18 19:34:22 +02:00
Piotr Idzik
d2ddec55e5
style: include NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION ( #5149 )
...
* style: use `assertFalse` and `assertTrue`
* style: include `NAB_NEEDLESS_BOOLEAN_CONSTANT_CONVERSION`
2024-05-08 22:41:46 +05:30
Piotr Idzik
bfb27eeb59
style: enable ArrayTypeStyle in checkstyle ( #5145 )
2024-05-06 22:49:52 +03:00
Piotr Idzik
414835db11
style: enable AvoidStarImport in checkstyle ( #5141 )
2024-05-05 20:48:56 +02:00
Piotr Idzik
092ac5795b
Remove SetKthBit in favor of SingleBitOperations.setBit ( #4991 )
2024-01-04 00:28:59 +02:00
Nishant Jain
a7d140a43e
Add Set Kth Bit ( #4990 )
2024-01-02 20:18:01 +02:00
Lukas
48ae88f09d
Bit swap ( #4770 )
...
* Create BitSwap.java
* Create BitSwapTest.java
* Update BitSwap.java
* Update BitSwap.java
* Update BitSwapTest.java
* Update BitSwap.java
* Update BitSwap.java
* Update BitSwapTest.java
* Update BitSwapTest.java
* Update src/main/java/com/thealgorithms/bitmanipulation/BitSwap.java
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com >
* Update src/test/java/com/thealgorithms/bitmanipulation/BitSwapTest.java
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com >
* Update BitSwap.java
* Update BitSwap.java
* Update BitSwap.java
* Update src/main/java/com/thealgorithms/bitmanipulation/BitSwap.java
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com >
* Update src/main/java/com/thealgorithms/bitmanipulation/BitSwap.java
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com >
* Update src/test/java/com/thealgorithms/bitmanipulation/BitSwapTest.java
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com >
* style: remove redundant blank line
---------
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com >
2023-10-15 07:03:25 +00:00
Lukas
e5d33f3565
Add SingleBitOperations ( #4415 )
...
* SingleBitOperators
* Tests
* Update SingleBitOperatorTest.java
* Update SingleBitOperators.java
* Update SingleBitOperators.java
* Update SingleBitOperators.java
* Update SingleBitOperatorTest.java
* deliting files
* Update SingleBitOperators.java
* Update SingleBitOperatorTest.java
* Update SingleBitOperators.java
* Update SingleBitOperators.java
* Update SingleBitOperatorTest.java
* Update SingleBitOperatorTest.java
* Update and rename SingleBitOperators.java to SingleBitOperator.java
* Update SingleBitOperatorTest.java
* Update SingleBitOperator.java
* Update SingleBitOperator.java
* Update SingleBitOperator.java
* style: declare private default constructor
* fix: remove `SetBitTest.java`
* Update and rename SingleBitOperator.java to SingleBitOperations.java
* Update SingleBitOperatorTest.java
* Update SingleBitOperations.java
* Update and rename SingleBitOperatorTest.java to SingleBitOperationsTest.java
---------
Co-authored-by: Piotr Idzik <65706193+vil02@users.noreply.github.com >
2023-09-30 10:06:45 +02:00
Arin
ea0eef128d
corrected test file name ( #4422 )
2023-09-28 18:30:41 +02:00
Lukas
fbef4023d5
Add Clear Bit ( #4355 )
2023-09-07 21:16:02 +03:00