Skip to content

Fix incorrect handling of zero input in binary_count_trailing_zeros#14495

Open
satwik-exe wants to merge 2 commits intoTheAlgorithms:masterfrom
satwik-exe:fix-trailing-zeros-zero-input
Open

Fix incorrect handling of zero input in binary_count_trailing_zeros#14495
satwik-exe wants to merge 2 commits intoTheAlgorithms:masterfrom
satwik-exe:fix-trailing-zeros-zero-input

Conversation

@satwik-exe
Copy link
Copy Markdown

Description

Fixed incorrect behavior for input value 0.

Changes Made

  • Added check for zero input
  • Improved type validation
  • Updated doctests

Checklist

  • I have read the contributing guidelines
  • This PR is not a duplicate
  • I have added/updated tests

@algorithms-keeper algorithms-keeper bot added enhancement This PR modified some existing files awaiting reviews This PR is ready to be reviewed labels Apr 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting reviews This PR is ready to be reviewed enhancement This PR modified some existing files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant