Ad
  • 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

  • Custom User Avatar

    Nothing stupid here. If you time out it means your code does not handle properly some cases (think about corner cases maybe?). In an IDE you can only try out the basic tests but the full test battery is more exhaustive and the challenge of a kata is to handle correctly all possibilities.

  • Custom User Avatar

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

  • Custom User Avatar

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