Ad
  • Custom User Avatar

    Only sums of elements of the input array are allowed. You cannot write 144 as a sum of some elements of [50, 40, 30, 20, 10] because any sum of such elements is a multiple of 10. 90 is a correct answer because 90 = 50 + 40 and it is not possible to get a larger sum divisible by 9 using numbers from the input array.

  • Custom User Avatar

    On one hand I agree that it would've made it easy and that it should require effort to solve it.

    BUT! Perhaps MENTIONING THAT WE CANNOT USE BIGINT in the kata description would've been most wonderfully, awesomely, magnificently excellent and logical, no?!

    So people wouldn't wrack their brains wondering why the hell "BigInt is not defined" and wasting time trying to solve the issue, - instead of concentrating on solving the actual problem?
    Goddammit, this is so frustrating.

  • Default User Avatar

    It does not work because in the node vs 8 it had not yet been implemented.

  • Custom User Avatar

    Because it would make the kata trivial and not worth of its rank. This kata is ranked blue for a reason, and it's supposed to be difficult.

  • Default User Avatar

    --address equal (address-1)

  • Custom User Avatar

    Why? The submission tests are not the same as the sample tests. You need to make sure your code works for all valid inputs and handles invalid inputs if necessary. The error should guide you.