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.
NVM I read wrong: The test is telling my code is failing because for {8,8} should give me -1 and it's giving me 1 (which is totally wrong)...
Sorry ^^;
Hi there, I am having doubts about Length 2 sized arrays.
When n=0, there is nothing at the left (because there is no -1 position), so the answer should be 1 if position 1 equals to 0.
When n=1, there is something at the left (position 0) and nothing to the right (last position), so the answer should be 0 if position 0 equals to 0.
So I don't understand why {8,8} should be 1! I mean, n is not being counted, but the numbers at the left and at the right of n, isn't it?
Am I misreading something or missing something?