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.
I could be wrong, but it seems that the random test outputs expect incorrect answers. For example, in cases where y1=y2 the slope should = 0 yet, the test expects -1? :/
Yet most random tests result in a decimal slope and expect an integer.
NO random tests in
why do you have to send 0 for true and 1 for false in everything but python and java? It is a bit confusing. Why not true and false boolens
This comment is hidden because it contains spoiler information about the solution
C# Function name should use
PascalCase
It's kinda strange that it expects string as the output, even for non-number values such as
undefined
Ruby 3.0 should be enabled.
In the current c++ version one can pass the attempt portion and fail the sample test portion. I noticed this because there is at least one solution accepted as correct, which is absolutely incorrect. You can check this by simply checking the case a^2 + b^2 = c^2 only.
In Java the return type should be
boolean
too.Also, all valid triples are already ordered in the Java tests.Reading the description again, it looks like that might be intentional. So either they should alway be ordered in Java and Python or the description should be fixed too.This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution