| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
binary_count_trailing_zeros(0) returned 0 but trailing zeros for zero are mathematically undefined. Raise ValueError with message "Input value must be a positive integer" instead, matching the behavior for negative inputs. Update doctest and reorder type checks to validate float before range check. Fixes TheAlgorithms#14479
Multiple Pull Request Detected@deepshekhardas, we are extremely excited that you want to submit multiple algorithms in this repository but we have a limit on how many pull request a user can keep open at a time. This is to make sure all maintainers and users focus on a limited number of pull requests at a time to maintain the quality of the code. This pull request is being closed as the user already has an open pull request. Please focus on your previous pull request before opening another one. Thank you for your cooperation. User opened pull requests (including this one): #15058, #15057, #15047, #15046, #15045, #15044, #15043, #15042, #15041, #15040, #15039, #15026, #15025, #15024, #15023 |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Describe your change:
Fixes #14479. Raises a ValueError for zero inputs since trailing zeros for zero are mathematically undefined. Previously returned 0.
Checklist:
Fixes #14479