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.
Thanks benjaminzwhite. :-)
Hi @romanBryndzak - I copied this test and note that 492 and 540 is just the sum of the respective arrays: are you just comparing the sum of the 2 arrays to find your answer??
If so, that is not what the kata is asking for (it would be a bit easy if so...). Re-read the description, the condition is more complex than that: you have to compare element-by-element, determine winner of each "battle", then add up the number of survivors etc.
Hi, people. I have a problem in start test.
assert.strictEqual(hasSurvived([32, 65, 21, 83, 85, 7, 71, 45, 20, 63], [83, 44, 38, 55, 84, 80, 58, 20, 4, 74]), false);
});
This test expects false but the result is 492 and 540, so this is true. Yes?
Thanks!