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.
fail with this test : findSolutions(["moa", "moe", "moi", "moo", "mou", "mua"])
In a Python sandbox, this function returns the right results but I still fail some tests, I don't understand why.
def merge_arrays(first, *second):
if len(second)>0:
for i, elt in enumerate(second):
if elt not in first:
first += elt
else:
first = list(set(first))
first.sort()
return first
I agree! I've done 6 kyu's easier than this
Thank you for the feedback
Please see my issue above
Ruby has one single random test; rather make it 50 or so!
Python random tests provide unsorted arrays, which contradict the description. Either update one or the other.
Furthermore, those arrays are not very well designed: always 200 elements between -100 and +100.
Seems a bit difficult for a 8 level!
Most of the times 8 level katas are basically just appending a couple of strings to each other, not manipulating multiple arrays in a not particularly trivial way!!