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
Nice ! The oneline version of my solution.
or r u a contributor to the cpython github repo
ok u gotta teach us noobies how u learn this
Ah, hence the inline.
I was wondering what it was for, thanks :)
I guess the compiler automatically changes 21**n in the result.
It simplifies the code, of course, but it also makes it about 8 times slower.
Exponentiation is a difficult operation, I made it faster by introducing a 10 element table of precomputed powers.
;-)
No more zeros in the denominator!
No, the expected result often adds up to 359 or 361.
The description should specify how to round half integers (up, down, ...).
pass random list in your solution before giving it to the user, just replace
with
The total of the resulting list doesn't really adds up to 360, just close to it.
The tests sometimes throw an exception:
I cheated and bypassed the kata security to use the random module. :)
huh?
pretty much the same thing as mine... not bad!
Loading more items...