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.
@Lician
For example finding fib(5):
Work through it from the top down as per the tree diagram below. When the function returns a value at the bottom, work your way back up replacing each function call with the value it returns and you will reach the answer which is 5.
I don't understand how it should work...
how did you calculate it?)
thx) i'll remember this.
I am sorry to hear about your whole head.
Your code is broken because it tries to get a token that is not there.
The fault lies in this code when names >= 4
You can see that if there is an ODD number of names (>= 4) then that last str2 assignment will fail when it runs out of tokens. E.g. if there are 5 names then:
e.g. try this:
Yes, it's useless.