Skip to content
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

Finding the next number with the same number of set bits #3556

Merged
merged 2 commits into from
Oct 2, 2023

Conversation

RoyCoding8
Copy link
Contributor

@RoyCoding8 RoyCoding8 commented Oct 2, 2023

This uses only bit operations and hence works pretty fast (does not need traversal of the bits of the number). Added files for C, C++ and Python.

@ZoranPandovski ZoranPandovski merged commit 90f3677 into ZoranPandovski:master Oct 2, 2023
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants