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.
Pretty sure 95% code-wariors search for a formula in google. Like me who's dumb as rock at math. It's almost imposible to solve it without knowing formula.
I feel that way more often than not on Codewars!
I feel dumb seeing these simple solutions.
Take a look at my solution, if it isn't obvious use pen and paper to draw points.
Nice
6 maybe in the string format
Agree: what's bad with it?
Why we must filter this solution?
This solution is very clever, and faster than my solution and yours. ;-)
This comment is hidden because it contains spoiler information about the solution
The questions asks you to check that the number inputed is an integer; in this case the number inputed (n) is a decimal and therefore you should return none instead of 6.
Due to the young Gauß's misbehaviour, Herr J.G. Büttner, the primary school teacher, to keep the bored and unruly young schoolboy...(continues from the source quote).
Why does it give me this error "n must be an integer: 6 should equal None"? 6 is not an integer?!?