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.
Kata like this is a duplicate to many existing katas nowadays.
Random tests never randomize 0, so this case is not tested. My solution hardcodes one fixed variant and does not care about leading zeros and still passes.
What's the maximum lenght of the input array? Is there a limit on it?
eval
right away and just accept 'proper' calculations?([1,2,3,0,2,3], 100) => 123-023=100
?This kata needs random tests ;-)
This comment is hidden because it contains spoiler information about the solution