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.
hopefully fixed there
fixed there
This comment is hidden because it contains spoiler information about the solution
Number of random tests is increased to 1001 to ensure all cases get tested. And your other issue also is fixed https://www.codewars.com/kumite/6830931d9b22cae2fe115973?sel=6830931d9b22cae2fe115973
Fork that updates the initial code with a comment showing the definition of
RGB
.done
This comment is hidden because it contains spoiler information about the solution
Done in this fork
I've made a translation that modifies the description to address this.
IIUC there is no right answer for this.
I don't know if the description got more specific in the meantime, but I was also curious so I already checked... 420690045 is not a multiple of 45, so it's definitely a "crazy value".
-420690045 % 45 == -30
, and-420690045 % 360 == -165
doesn't match any direction.Yours and the solutions that match your results are probably rounding off, turning -165 (-45 * 3.66...) to -135 (-45 * 3) with integer division or some equivalent, somewhere.
When kata authoring is done right, you have a unique problem. Neither the internet nor an AI will know what to do with your kata.
Ruby fixed in this fork, other languages still pending fixes.
Non-array tests (input validation) no longer required.
Fixed, thanks
This comment is hidden because it contains spoiler information about the solution
What is wrong with free text parsing problems? (in general)
Loading more items...