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.
For those who u might ask why the
dnaRepalceis outside of the function body.The reason is it don't need to be build everytime the func is called, so this solution is faster than those who put the replacer inside of the func body.
wouldn't work on non ASCII characters
This comment is hidden because it contains spoiler information about the solution
No one is faster: https://stackoverflow.com/questions/26540885/lambda-is-slower-than-function-call-in-python-why
lambda is indeed faster, but according to the PEP8, it is preferable to use the def statement
i like it picasso
This comment is hidden because it contains spoiler information about the solution
this is a cosmic level python solution
lol
i think lambda is faster than def, maybe not sure tho
It seems to me that all previous years were better, since the point is not in readability, but in the beauty of the code)
you can use pythontutor.com to see it in action
how did you know you should loop it?
I love this, how did i not think about this.
well done and thanks
This comment is hidden because it contains spoiler information about the solution
Loading more items...