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.
@Arandolph543, read the description again and focus on the second bullet point. There's a key term there that you missed.
Well, I am not your tutor. You asked why your solution doesn't work, and I identified (one of) potential issues in it. If you want to ignore that, that's your choice. I have no obligation teaching you. Your report does not show any specific things that need to be fixed, so I am not sure how can I help you.
I suggest you find yourself a teacher or go through some additional training/tutorials if you cannot handle simple issues yourself.
I asked because your code actually ignores the case of n==1. And this is not the only issue, as far as I can see. You need to work more on your solution.
What will your solution return if n is 1?