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.
Agreed. I wrote a solution for camelCase first and then realized that the title says camelCase but is actually PascalCase.
Agreed. This makes no sense. After Player 1 took a turn and didn't win, it should say "Player 2 has a turn" not "Player 1 has a turn". The Kata requirements are a design flaw. It probalby is too hard to change though because it would invalidate all those who already finished the Kata and had to intentially write their code wrong (with what essentially is a UI bug).
This comment is hidden because it contains spoiler information about the solution
You still can post your code if you need help and get stuck after looking for a solution by yourself, and you'll see if someone answers you. Don't forget to add a spoiler flag if you do that.
i'm using python.if you are a python programmer, i will share the code, hopefully you can find the problem.
No, instructions are not wrong, and tests are not wrong.
You are experiencing problems caused by the fact that your solution uses an approach which loses some precision at some step. You need to find a way to keep your calculations exact so intermediate or final numbers do not get incorrectly rounded or truncated. There's hint in the description to stay in domain of integers all the time.
Avoid real division, avoid floating point inaccuracies, and avoid unnecessary rounding, and things will be OK.
Please say which language you're using. I have solved this kata in several of them and had no problem with that, seconds must be rounded down.
This comment is hidden because it contains spoiler information about the solution
I'm not sure if it is harder, but I think there are more creative ways to solve this one than either of the first two. With a weird approach, I was able to get this one down to one line. The others were almost trivial to get a single-line solution.