Added a bit manipulation program to determine even or odd numbers#2959
Merged
realstealthninja merged 15 commits intoTheAlgorithms:masterfrom Sep 24, 2025
Merged
Added a bit manipulation program to determine even or odd numbers#2959realstealthninja merged 15 commits intoTheAlgorithms:masterfrom
realstealthninja merged 15 commits intoTheAlgorithms:masterfrom
Conversation
Implementation to Check if a number is Even or Odd using Bitwise Operator
Contributor
Author
realstealthninja
requested changes
Jul 9, 2025
Collaborator
realstealthninja
left a comment
There was a problem hiding this comment.
There are two files under this pr
Deleted the one file as there was 2 files in the commit
Contributor
Author
|
Deleted the second file in the commit and creating the separate PR for the second file |
Contributor
|
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. |
Contributor
Author
|
commenting to keep this active |
realstealthninja
requested changes
Aug 19, 2025
Collaborator
realstealthninja
left a comment
There was a problem hiding this comment.
even or should return boolean; I have added other suggestions as well. Let me know if you dont understand something. Thank you for raising this pull request ❤️
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
modified
git5v
commented
Aug 21, 2025
Collaborator
|
please switch to using boolean instead of string |
realstealthninja
requested changes
Sep 1, 2025
reverted to boolean to check if number is even or not
Contributor
Author
|
reverted to boolean to check if number is even or not |
realstealthninja
approved these changes
Sep 4, 2025
Collaborator
realstealthninja
left a comment
There was a problem hiding this comment.
Nicely Done! thank you for this pr!
anandfresh
approved these changes
Sep 10, 2025
realstealthninja
added a commit
to realstealthninja/C-Plus-Plus
that referenced
this pull request
Oct 1, 2025
…eAlgorithms#2959) * Create check_even_odd.cpp Implementation to Check if a number is Even or Odd using Bitwise Operator * Update check_even_odd.cpp * Create factorial_top_down_dp.cpp * Delete dynamic_programming/factorial_top_down_dp.cpp Deleted the one file as there was 2 files in the commit * Create factorial_top_down_dp.cpp * Delete dynamic_programming/factorial_top_down_dp.cpp * Update bit_manipulation/check_even_odd.cpp Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com> * Update bit_manipulation/check_even_odd.cpp Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com> * Update bit_manipulation/check_even_odd.cpp Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com> * Update bit_manipulation/check_even_odd.cpp Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com> * Update check_even_odd.cpp modified * Update check_even_odd.cpp reverted to boolean to check if number is even or not --------- Co-authored-by: realstealthninja <68815218+realstealthninja@users.noreply.github.com>
realstealthninja
added a commit
to realstealthninja/C-Plus-Plus
that referenced
this pull request
Oct 1, 2025
…bers (TheAlgorithms#2959)" This reverts commit bcb09df.
realstealthninja
added a commit
to realstealthninja/C-Plus-Plus
that referenced
this pull request
Oct 1, 2025
…bers (TheAlgorithms#2959)" This reverts commit bcb09df.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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/check_even_odd.cppNotes: Added
check_even_odd.cppa bit manipulation method to check if a number is even or odd.