Ad
  • Default User Avatar

    It works like that, because I calculate fitness on the first step of each iteration (based on the previous population).

  • Custom User Avatar

    This kata is strictly about the algorithm, not some language features. Hence - why not? You're very welcome to translate it to Java :)

  • Default User Avatar

    I didn't want to multiply the answers "Not applicable"... The case 'array size zero' is already in the case m1 * ... * mk must be greater that the number n to decompose.
    Furthermore I don't think katas are there to test a lot of possible errors but rather to encourage algorithms knowledge and discover of language features:-)
    Have a good day!