Ad
  • Default User Avatar

    I am confuesed ? Why did you publish the same Kata twice (both of which apparently have about 50% upvotes) And have mistakes in them ?

    I maybe a bit new here but I don't think that you are supposed to do that (feel free to correct me if I am wrong)

    Also impressive job on the honor gain (less than 2-3 weeks and you are at 2k). Where did you go wrong with the creation of these kata's.

    Awaiting an answer :)

  • Custom User Avatar

    Free points?

    What he means is: It's a duplicate.

    Of both Combinations, which you could have translated, and Combinations ( which should have been a translation of former, but I claim youthful innocence and I didn't know Haskell at the time ).

    Apart from that, description does not specify whether or not array of number can contain duplicates. This matters. A lot. But please don't fix it, just unpublish this duplicate.

  • Custom User Avatar

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

  • Custom User Avatar

    Test.expect(getCombinations([], 2) === 0, " ... ");

    This test case does not make logical sense - one simply cannot choose 2 items from a collection of 0 items (and therefore should be treated as an error unless otherwise stated). Since this edge case goes against intuition, it should be explicitly clarified in the Description.

  • Custom User Avatar

    Needs Random Tests.

  • Custom User Avatar

    Please use Test.assertEquals(actual, expected, message) instead of Test.expect

  • Custom User Avatar

    Initial code does not match the requirement