Ad
  • Default User Avatar

    Agreed. I wrote a solution for camelCase first and then realized that the title says camelCase but is actually PascalCase.

  • Default User Avatar

    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).

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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.

  • Custom User Avatar

    i'm using python.if you are a python programmer, i will share the code, hopefully you can find the problem.

  • Custom User Avatar

    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.

  • Custom User Avatar

    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.

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Default User Avatar

    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.