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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
I tried writing this with an for loop instead of a while loop, and it doesn't work.
it says 73 is False while it should be True.
Can anyone explain to me why it doesn't work the same?
This comment is hidden because it contains spoiler information about the solution
Yours is more readable than mine, but my logic is a bit cleaner.
Don't work if n is non digit!
with float may return an error!
This comment is hidden because it contains spoiler information about the solution
My first solution with counter didn't pass testes cause time run out.
This solution is passing tests but takes a lot of time too.
I guess original tests were not so harsh
if n is anything other than an integer or integer-formatted string (e.g. '123') that is >=0, throw a TypeError
Read the problem description.
This does not correctly handle floats.
Similar logic, but much cleaner than mine. Nice!
OK
Loading more items...