Skip to content

Conversation

@yaadhuu
Copy link

@yaadhuu yaadhuu commented Jan 26, 2026

Describe your change:

  • Fix a bug or typo in an existing algorithm?

This pull request handles the edge case where both inputs to the
Greatest Common Divisor (GCD) function are zero (gcd(0, 0)), which was
previously undefined. Doctests have been added to document and verify
the expected behavior.

Checklist:

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized.
  • I know that pull requests will not be merged if they fail the automated tests.
  • This PR only changes one algorithm file. To ease review, separate PRs are used for separate algorithms.
  • All new Python files are placed inside an existing directory.
  • All filenames are in all lowercase characters with no spaces or dashes.
  • All functions and variable names follow Python naming conventions.
  • All function parameters and return values are annotated with Python type hints.
  • All functions have doctests that pass the automated testing.

@algorithms-keeper algorithms-keeper bot added enhancement This PR modified some existing files awaiting reviews This PR is ready to be reviewed labels Jan 26, 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