-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Add 'GCD of multiple numbers' section in euclid-algorithm.md #1355
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
Add 'GCD of multiple numbers' section.
Awaiting for a separate article about a sum of several numbers. I don't see why this is useful. |
I think it's useful because it's often requested in contests, and it's not very obvious. |
We can simply have a sentence saying gcd is associative, so we can define gcd(a, b, c) as gcd(a, gcd(b, c)) and so forth. |
Indeed. |
If we're adding this, I think it's worthwhile to mention that finding |
Preview the changes for PR #1355 (for commit 38982cb) at https://gh.cp-algorithms.com/1355/. |
Preview the changes for PR #1355 (for commit cbb7b39) at https://gh.cp-algorithms.com/1355/. |
Thanks! And sorry for repeated merges of main into patch-1, I needed to check how pull requests preview work. |
Add 'GCD of multiple numbers' section.