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.
'push(head, data)' in the first position (0).
data -> head -> .....
You have to return elements of a1 which are substrings of elements in a2 and not the other way around.
Thus,
'46'
and'ode'
are not supposed to be returned.This comment is hidden because it contains spoiler information about the solution
try throw new Error() instead of raise Exception()
Raising Exception should work. There is probably some other fault in your code.
Try printing the input to your function to see what value your function is tripping at.