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.
python new test framework + random tests are required. updated in this fork
This kata is a subject to deduplication process here: https://github.com/codewars/content-issues/issues/203.
Please join the discussion to help us identify duplicate kata and retire them.
Scala translation
C Translation (author inactive).
Python update (new testing framework + random tests)
Language: C++
Test suit missing the required header
std::vector
.Find two typos:
No random tests.
The test cases don't cover the case where
arr2
has an index that is out of bounds inarr1
, so, for the kata, this code passes -while it shouldn't.
There is a test case in the description that states -
If you run the code above, for this case, you would get -
[4, undefined]
, as shown in this bin.The correct output should be just
[4]
.I suggest providing the dictionary so we don't have to manually create it.