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.
This solution can fail, returning an answer when the sequence is, in fact, non-linear. Probably needs better testing in the question.
As an example:
#Prints "5" using this function.
print (get_function([0, 1, 2, 3, 100000])(5))
This comment is hidden because it contains spoiler information about the solution
Instructions do not specify it, but kata requires returned items to be in ascending order.