Ad
  • Custom User Avatar

    That's true. Nice catch!

  • Custom User Avatar

    Obviating the 3 middle numbers seems rather odd to me (and that's not what the example shows), but if it helps, I've added a comment in the example you found not clear.

  • Custom User Avatar

    Pretty self explanatory given the example, if the length is odd, you should ignore the middle number when adding the halves. You should test the string represents a valid number tho (the middle char included.)

  • Default User Avatar

    OK. More than 500 people have passed the Java kata (1760); after 500+ people have passed it is impossible to change the tests (CW rule).

  • Default User Avatar

    Initial solution says: public static long findNb(long m) so BigInteger m was neither planned nor asked for Java... only long!
    If you want BigInteger take a translation with them:-)