-
Notifications
You must be signed in to change notification settings - Fork 19.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE REQUEST] Add New Bit Manipulation Algorithms #5628
Comments
please assign this to me |
Hey @sanvviratthore , |
Can you please assign it to me? |
Can you assign this issue to me? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution! |
Hey, @sanvviratthore I’d like to propose adding more algorithms, such as: Count Set Bits in an Integer: Efficiently count the 1s in a binary representation. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution! |
Please reopen this issue once you have made the required changes. If you need help, feel free to ask in our Discord server or ping one of the maintainers here. Thank you for your contribution! |
What would you like to Propose?
I would like to contribute additional bit manipulation algorithms to the repository. Below are some algorithms I plan to implement:
Issue details
Algorithm 1:
Find the Number Appearing Odd Times
In an array where all numbers appear even times except one, we find the number that appears an odd number of times using bit manipulation (XOR).
Algorithm 2:
Swap Adjacent Bits of a Number
Swap every pair of adjacent bits of a given number.
Algorithm 3:
Bitwise XOR of All Elements in an Array
Compute the XOR of all elements in an array.
Additional Information
I will ensure the implementation follows the existing coding standards and will include unit tests for each algorithm.
The text was updated successfully, but these errors were encountered: