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.
Just in case you're all stuck where I was, try Float instead of Double for the calculations.
That was what finally solved it for me (Kotlin)
A suggestion though: Rounding is something that can affect a lot depending on where you round and how many decimal places you use, etc.
Maybe consider using test cases way less affected by this since if someone is already getting the right answer in other tests then most likely the algorithm is correct.
PS: There is also the case of the test failing and then not failing randomly on every attempt.
Same is happening in Kotlin, the instructions mention "-1 -1 -1" but the expected array lenght is 0.
You're both right, it is not an issue. I didn't notice my comment was flagged as such, it was my first one, I'll be more careful in the future.
I just wanted to comment that some solutions were available in 1.4 and had to update my code so it was 1.3 compatible. I'd unflag it as an issue but I'm no longer able to edit it.
Thank you for taking the time to answer and for redirecting me to the proper place where I can post it.
We should be able to use version 1.4.
Had most of my solutions thrown out because it didn't recognize certain functions.
Edit: I copied over the code of the 1.4 function I was using and solved it.