Skip to content

added chinese_remainder_theorem #1232

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

Conversation

OddExtension5
Copy link
Contributor

No description provided.

Comment on lines +13 to +18
def ExtendedEuclid(a, b):
if b == 0:
return (1, 0)
(x, y) = ExtendedEuclid(b, a % b)
k = a // b
return (y, x - k * y)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See https://pep8.org/#function-names In Python function_names should be lower_case and ClassNames should be CamelCase. This goes for all the functions.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, add some doctests https://docs.python.org/3/library/doctest.html
This goes for all the functions unless adding doctests makes no sense.

@OddExtension5
Copy link
Contributor Author

Closing in favour of #1248

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