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 is why you don't pay programmers by the line
if that the case just return false
Of course there's many programming languages and it's hard to explain what to return in each language. So in the description I read, that you had to return an integer array of {-1, -1, -1}, if v1 >= v2. But actually you need to return null. Because of that I got an error message:
When I looked at the kata test cases I understood my mistake.
Java
As much as I can tell, this kata is solvable in integers and solutions can avoid any problems with accuracy. This would mean that your rounding problem is not a kata issue. Generally it's a good idea to stick to smallest required unit (here seconds) and perform calculations using it. This way you avoid division and inaccuracies caused by it.
This comment is hidden because it contains spoiler information about the solution
You can check by yourself: https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution#how-can-i-see-which-input-causes-my-solution-to-fail
This comment is hidden because it contains spoiler information about the solution
It is not that test you are failing.
Moreover, before posting an issue look at the top of the page to see how many people passed the kata (Python: 12135). When this number is high chances are your code is wrong somewhere.
This comment is hidden because it contains spoiler information about the solution