Skip to content

Conversation

@NA-V10
Copy link

@NA-V10 NA-V10 commented Nov 21, 2025

Summary

This PR adds a new bit manipulation algorithm count_bits that returns the
number of set bits (1s) in a non-negative integer.

Highlights

  • Pure Python bitwise implementation
  • Includes doctests following project standards
  • Validates against negative input
  • No external dependencies

Checklist

  • Doctests added
  • Code follows repository format
  • No breaking changes

Thank you!

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