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.
What does the n != do
This comment is hidden because it contains spoiler information about the solution
hello my name is Aabdulhay and you
I was thinking of this while doing it but I could not remember. Trying to do it all from memory.
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.
Lol, me too. In case I need to translate it to C later.
I can't do this anymore
that is a smart solve ,, i like it , i know that is don't best practice and there was more solutions is more readable than it's but this is a new practice and a new way for the solution for me, so i like it.
i know my english language is bad :)
You just taught me how to use reduce, thank you!
yep, but when you create your own solution, with own seing, thats cool! like you creating your own library
This comment is hidden because it contains spoiler information about the solution
but when you return 0 or other number python will return that's number not a boolean value ?
I didn`t even know about count method and used loops, lol. Thanks for the best solution!
what's the problem?
This comment is hidden because it contains spoiler information about the solution
Loading more items...