Ad
  • Custom User Avatar

    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 ^^;

  • Custom User Avatar

    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?