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.
If it was >= then v could take the v = 0 value in the condition and then you would indeed have a division by 0. Without the = sign, the condition goes to the else part and no division by zero is performed.
Wouldn't you encounter an error if n was out of range before you get to the else part?
Annoying kata due to poorly worded instructions.
Ah oops I missed that, thanks for answering :)
Why is this listed as a separate/different solution from the one with most "Best Practices" votes, when they are 100% identical?