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.
You cannot extend an integer to a list, you can only append it. Also, your code fails for cases like
tribonacci([1, 1, 1], 1)
(your code returns[1, 1, 1]
whilst the output should be[1]
)Nice
This comment is hidden because it contains spoiler information about the solution