Ad
  • Custom User Avatar

    Strange, I took your solution and removed that line and it passes all the tests perfectly. I guess there were no problems after all!

  • Custom User Avatar

    Okay, I'll have a look later.

  • Custom User Avatar

    Not an issue. If you have problems with your code, you should raise it as a question.

    Two things:

    • what if n=0?
    • Note that you're getting an ArgumentOutOfRangeException.You should look at both the list and the index instead of still trying to get item from that index ;-)