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 I were to make a translation, I would include division by zero in the tests, and make sure it throws an exception, because that's the only acceptable result for it.
Saying it's zero is literally no different than saying 1 equals 2.
I wish I'd thought of this instead of writing my own method for shifting all the members of the array one by one.
This comment is hidden because it contains spoiler information about the solution
HAHAHAHA
I should have done this instead of having multiple for loops.
What kind of voodoo is this?
Yes! I inferred that after reading some other posts here. Thanks for the help!
This comment is hidden because it contains spoiler information about the solution
When you add two integers the result is an integer and you have an integer overflow there. Use some casting.
This comment is hidden because it contains spoiler information about the solution
You can cut down the length of this code by placing the num_vowels++ outcome under all the "true" cases, as seen in some of the successful solutions above.