Ad
  • Default User Avatar

    Maybe there is time out? even if you pass all tests, if there is time out it will not accept

  • Default User Avatar

    Nice solution. Mine is simmilar but much longer. It feels good to see the top solution is close to mine :)

  • Default User Avatar

    I can not tell. All the tests i run, are working. But anyways, this kata is not my favorite. Thanks for helping and hava a nice sunday!

  • Custom User Avatar

    Just solved the kata in Java and encountered no problems. If your solution does not pass, it's probably wrong.

    If you do not see any useful error message, it can either time out or crash in some other way. If you see the error message but you do not know what it menas, then paste it here or show us your code so we could drop some hints.

    Kata and its Java version seems to be OK.

  • Custom User Avatar

    If it worked, it would pass. 4000+ people solved it in java somehow.

    I don't know what you mean by "The error message says nothing": the result is either true or false, so if you print what you return and there's an error, it's probably expecting the opposite. However, the error MUST be saying something...

  • Default User Avatar

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

  • Default User Avatar

    This is not correct. Who voted this up? BigInteger is not allowed here

  • Default User Avatar

    First time that my solution is very close to the top solution :)

  • Default User Avatar

    After i spent a while programming my own solution, I am astonished about these two lines. I think this is near to the optimal solution.