-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Added a bit manipulation program to determine even or odd numbers #2959
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
base: master
Are you sure you want to change the base?
Conversation
Implementation to Check if a number is Even or Odd using Bitwise Operator
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There are two files under this pr
Deleted the one file as there was 2 files in the commit
Deleted the second file in the commit and creating the separate PR for the second file |
This pull request has been automatically marked as abandoned because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
commenting to keep this active |
Description of Change
Previously, the repository did not include an implementation for checking whether a number is even or odd using bit manipulation techniques. I have created a new file and added the code to perform this check using bitwise operations.
file location for ref:
bit_manipulation/count_bits_flip.cpp
Notes: Added
count_bits_flip.cpp
a bit manipulation method to check if a number is even or odd.