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.
https://docs.codewars.com/training/troubleshooting/#print-input
This comment is hidden because it contains spoiler information about the solution
Omg... I was inconsiderate 🤦
You are absolutely right)
Now everything works as expected.
Thaks!
Hi @krbtsv - I'm not sure I understand your question; the above code produces:
[1, 1, 1, 3, 5, 9, 17, 31, 57, 105]
for input
tribonacci([1, 1, 1], 10)
.Maybe you have 2 different functions with the same name in your IDE while debugging or something like that?
It's doesn't work. Why? Can someone explain me this?
print(tribonacci([1, 1, 1], 10)) it returns: [1, 1, 1, 3, 3, 5, 7, 11, 15, 23, 33]
When the correct answer is [1, 1, 1, 3, 5, 9, 17, 31, 57, 105]
I checked the solution several times and logically everything should normal. But...
Is this the magic of recursion?