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.
i solved it
test case a = [3, 4, 5] b= [1, 2, 3, 4]
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
way too simple, but i guess the point was to get people to explore their 'clever' side
Not a kata issue
OP solved it, closing
How can I resize 'a' array?
Hi! I can`t pass random test. I have got error: array lengths differed, expected.length=6 actual.length=81; arrays first differed at element [0]; expected:<18> but was:<0>
In IDE everethings work good. How can i fix this?
How is this kata a 6kuy? This is too easy.
use the array filter
This comment is hidden because it contains spoiler information about the solution
Who knows? We're not mindreaders.
Not a valid kata issue. See https://docs.codewars.com/training/troubleshooting for tips.
Documentation suggests that package
slices
is only available since version 1.21, but only 1.20 is available at the moment. So, don't import unsupported packages.This comment is hidden because it contains spoiler information about the solution
Yes. If a test looks like this:
assert.deepEqual(arrayDiff([1,2,2], [2]), [1], "a was [1,2,2], b was [2]");
, your returned value should be[1]
.If your result is wrong, you'll get this message:
expected ABC to deeply equal XYZ
.Here, "ABC" is your result and "XYZ" is the correct solution.
Loading more items...