Ad
  • Custom User Avatar

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

  • Custom User Avatar

    Nice! Awesome--it's fixed!

    Thanks again for the cool Kata!

  • Custom User Avatar

    Works perfectly now! Thanks for the correction! Awesome Kata!

  • Custom User Avatar

    Thanks for the ruby version. Looks like the random test cases are buggy though (one example below).

    "Test for: nums = [671059108, 671053106, 671059186, 675059106, 671029106, 71059106, 671059506, 671259106, 631059106]
    ✘ Expected: "7135052293105868", instead got: nil"

    Some arrays are shorter than others and the key is much too long.

    Thanks again!

  • Custom User Avatar

    Ruby here. All the random tests expect a 0 result (one such example below). How can this be?

    "Random tests
    Testing for [35, 22, 4, 619, 9, 995, 9] and 2
    ✘ It should work for random inputs too - Expected: 0, instead got: 1039 "