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.
beautiful
great idea! next time will remmember that 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
And why is that?
please use a spoiler flag when discussing code / solutions. I added the flag
This comment is hidden because it contains spoiler information about the solution
if it works, it works.
can't complain.
wuaaouuuuuu
Python doesn't have arrays and the code above isn't creating a list either. It's creating a generator and the creation specifically takes almost no resource, since the values are generated lazily.
AFAIK the difference comes from the code above calling isdigit function a lot of times, whereas replace is only called 10 times. Keep in mind, that both of the functions are highly optimized and written in C, so that's why the the code with more function calls and more python is slower. That also for example causes some O(n^2) algorithms to run faster in python, than an O(n log n) alternative.
This got my head spinning! tried it with other examples and it worked! Haba..
Thats crazy
ahh damm this i didnt thought abt it . intresing approch i like it . but i would want someoen to help me understand this smart one
This is the way.
wha
Loading more items...