Skip to content
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

Handle the cases with m == 1 in modular_inverse #16

Merged
merged 1 commit into from
Nov 16, 2023

Conversation

vil02
Copy link
Member

@vil02 vil02 commented Nov 16, 2023

modular_inverse crashes, when called like modular_inverse(2, 1). This PR fixes that.

@vil02 vil02 marked this pull request as ready for review November 16, 2023 06:19
@appgurueu appgurueu merged commit 1e3b32f into TheAlgorithms:main Nov 16, 2023
3 checks passed
@vil02 vil02 deleted the fix_modular_inverse branch November 16, 2023 18:45
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