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.
wow u re genius
the True use i am not clearly understand
nice ;)
This comment is hidden because it contains spoiler information about the solution
Reminds me of {True: "yes", 1: "no", 1.0: "maybe"} evaluating to {True: 'maybe'}
He use [True] as a key to dictionary, so he return value where key is true(r==0,r>0 or r<0)
This comment is hidden because it contains spoiler information about the solution
code golf
Don't get rid of them like this, your if statements run faster than gratuitous dicts.
Don't feel bad about your if statement, this solution with an unnecessary dict creation is slower than your if block.
Great simple solution. Love it. Left/right in one dict ... and the return statement. You know Python. :)
Boom! So clever!
Really nice :)!!
Sweet code and runtime is impressive for massive strings !
Omfg!!!! Is just beutiful :,,v
Loading more items...