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.
use the spoiler tag next time.
This comment is hidden because it contains spoiler information about the solution
so this is what its like being a senior code developer
How in the worl-
I'm surprised this code has passed all tests. It doesn't validate the input. What if n is a string?
how could it pass the test
It doesn't. I forked it and ran the code and it doesn't even pass the tests.
How does it check if n is positive?
How does this work if n is a string instead of an int? One of the test cases was a string of 'n' which threw an exception for me.
Sorry, I can't tell, are you actually asking, or is this rhetorical?
This comment is hidden because it contains spoiler information about the solution