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.
reraised with proper info
Not a suggestion prior to this kata
I would agree with this suggestion since this is an 8kyu kata. If it were a 7kyu kata I think working with floats would be fine. In any case, I did appreciate that this used floats as it gave me a good excuse to work with something that I rarely (never XD) work with.
Still not fixed.
Not a suggestion.
the preloaded code needs to have "static" after public.
Approved
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Nothing really to do with the return. The explicit cast is not necessary when doing any primitive widening conversion.
Refs:
5.1.2. Widening Primitive Conversion
Good point. Changed the name. Thanks for suggesting :)
say it when you can solve it like that: https://www.codewars.com/kata/reviews/570184bc5594a091150000a2/groups/57027d910052645429000b14 Were all here to learn
Nope, that's the condition for a right triangle, not for any triangles. Let the sides to be
a,b,c
andc
is the longest side, then:a^2 + b^2 > c^2
a^2 + b^2 = c^2
a^2 + b^2 < c^2
Fixed. Thanks!
corrected
Loading more items...