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.
Converted it back to readable form. It's just like the other solutions.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
If n==0, the output would be 9. Fortunately, JavaScript's modulo operator doesn't work exactly like the real one--thank you Brendan Eich.
"You cannot take the square of 'nothing' and have it also equal 'nothing'" -false
"In mathematics, a square number or perfect square is an integer that is the square of an integer" -true
0^2 = 0. Plus, they're both integers.