Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Adds binary recursive stein algorithm to the GCD class #808

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

Merged
richard-ash merged 5 commits into kodecocodes:master from kayoslab:GCD-improvements
Jan 31, 2019
Merged

Adds binary recursive stein algorithm to the GCD class #808

richard-ash merged 5 commits into kodecocodes:master from kayoslab:GCD-improvements
Jan 31, 2019

Conversation

@kayoslab
Copy link
Contributor

@kayoslab kayoslab commented Oct 23, 2018

Checklist

Description

  • Three different approaches for the GCD to be calculated
  • Improves the LCM by passing the used GCD algorithm into the function.
  • Find an easy GCD function if possible.
  • Adopts the changes in the appropriate README file.

Simon C. Krüger and others added 3 commits October 23, 2018 15:32
* Improves the LCM by passing the used GCD algorithm into the function.
* Find an easy GCD function if possible.
* Was intended to be a second example, but is not yet implemented
Copy link
Contributor

@richard-ash richard-ash left a comment
edited
Loading

Choose a reason for hiding this comment

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

Thanks for the PR 😄 I love the different implementations for gcd!

I added a couple inline comments. Overall:

  1. Great job on the different implementations of gcd. The comments, in particular, are well worded and describe what each algorithm accomplishes.
  2. I think the README needs more details on the different implementations of gcd. Specifically, I'd leave the beginning of the README the same as it was before and add an advanced section below Least Common Multiple where you can go into detail about the different implementations and why one should prefer one over the other. Thoughts?

- Default parameter values
- umbrella for different gcd implementations with generic gcd(_: _:) function
- better structure of readme file including all 3 algorithms
Copy link
Contributor Author

@richard-ash Thank you for the valid comments. I updated my pull request according to that. The example code is now moved into the playground's Sources folder and the README is extended with details regarding all three algorithms and a short discussion.

Copy link
Contributor

Awesome thanks so much @kayoslab. Changes look 💯

@richard-ash richard-ash merged commit 545a60c into kodecocodes:master Jan 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@richard-ash richard-ash richard-ash left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /