Visitar URL original
Add PythagoreanTriple.java and Add assert statements by rbshealy · Pull Request #1417 · TheAlgorithms/Java · GitHub
The Wayback Machine - https://web.archive.org/web/20201103184353/https://github.com/TheAlgorithms/Java/pull/1417
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

Add PythagoreanTriple.java and Add assert statements #1417

Merged
merged 4 commits into from Aug 16, 2020

Conversation

@rbshealy
Copy link
Contributor

@rbshealy rbshealy commented Aug 16, 2020 •

PythagoreanTriple.java is a class that determines whether its inputs, a,b,c are a Pythagorean triple.
returns true if a^2 + b^2 = c^2 and all are positive non-zero values, false otherwise

Adding assert statements to AbsoluteMax, AbsoluteMin, AbsoluteValue, MinValue, and MaxValue helps for testing

Maths/AbsoluteMax.java Outdated Show resolved Hide resolved
Maths/AbsoluteMin.java Outdated Show resolved Hide resolved
rbshealy added 2 commits Aug 16, 2020
@StepfenShawn StepfenShawn merged commit ea43d70 into TheAlgorithms:master Aug 16, 2020
@weXiao-a
Copy link

@weXiao-a weXiao-a commented Aug 16, 2020

Thank you so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.