Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
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 of10
.90
is a correct answer because90 = 50 + 40
and it is not possible to get a larger sum divisible by9
using numbers from the input array.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.
It does not work because in the node vs 8 it had not yet been implemented.
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.
--address equal (address-1)
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.