Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Unpublishing as a duplicte of https://www.codewars.com/kata/pythagorean-triple
Duplicate of https://www.codewars.com/kata/pythagorean-triple
If you are only testing for abc such that c > a and c > b, then you should consider indicating that in your details/instructions
Thanks for your suggestion but, it is not the first time that someone replies that. This kata is based on Pythagoras Theorem, an is restricted to his definition, so C is always the hypotenuse.
i appreciate your comments, greetings from Colombia :D
Mixing up the order of the numbers (such that c isn't always the largest side) would better the kata! Interesting one nonetheless.
added a translation for javascript and random tests
You don't check different orders of the numbers.
nice kata. Some further tests need to be added to strengthen the kata, I would suggest:
Change the order of a, b, c in your tests (not always a <= b <= c !). Add random tests, please:-)
Cool thanks for the hint :-)
You dont need to use return in ruby. It automatically returns last statement. Same with the brackets arround conditions. But I will add space around '>'.
Done! :) TY
Just for your description change the last sentence to
"Psst! Ask Pitagoras for more information, but don't tell him I sent you :)"
Use ruby's helper methods instead creating them, but, good job too