Skip to content

Negative number support for the Java and Python examples for Euclid's Algorithm #15

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
merged 1 commit into from
Sep 18, 2017
Merged

Conversation

Butt4cak3
Copy link
Contributor

This pull request does the same as #14 but with Java and Python. Both code examples now support negative numbers as input parameters.

The implementations now support negative numbers.
@ghost
Copy link

ghost commented Sep 18, 2017

This seems like an unnecessary change. This isn't meant to be production code but example code for people to try and understand the concepts and by adding the abs() it lengthens the code / makes it slightly harder to read.

@june128
Copy link
Member

june128 commented Sep 18, 2017

I'am on your side there. I think we have to mark the lines of code for handling the negative values clearly or provide two versions of the functions.

@leios
Copy link
Member

leios commented Sep 18, 2017

As mentioned in 14, I think this serves a purpose and is worth putting in.

Thanks for the updates!

@leios leios merged commit 7420e4c into algorithm-archivists:master Sep 18, 2017
@Butt4cak3 Butt4cak3 deleted the euclid_negative branch September 18, 2017 11:56
@Butt4cak3 Butt4cak3 mentioned this pull request Sep 18, 2017
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.

3 participants