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.
This comment is hidden because it contains spoiler information about the solution
Also, if you imagine that two sides of a triangle are as long together as the third one, that would make their angle 180° which isn't a triangle anymore.
no it won't b/c adding a positive to a negative side could pass one equality check, but not all 3 together, that's what makes this one a solid pick.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Really efficient way to express the rules of a triangle.
One-liner... how did I not think of this
my tests had negative numbers too.
since when can length be negative?
This will have problems with a negative numbers
And I never said it wasn't best practice in the present case.
But this is a question about triangles. They are not going to spawn new sides anytime soon.
This comment is hidden because it contains spoiler information about the solution
Simple, readable and efficient solutions are clever, even if they don't look like it.
Parenthesis adds readability.
(look at the comments below)
Loading more items...