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.
I did the same thing. However I am not sure if its faster than the hardcoded solution
This comment is hidden because it contains spoiler information about the solution
very clever!
Is that solution same as if function that select in each operator or it will process all the operator function?
Every thing that is hard coded or using simple functions should be faster
This looks nice, but by defining 'string.lower()' within the for loop instead of a variable outside of it requires python to perform the lower function during each iteration of the for loop instead of just once if written outside the for loop. Which imo makes this a lesser candidate for 'best practice' than other solutions.
No, it's not. In fact, over a high number of invocations of the function, it probably actually be slower (allocation + hashing + lookup vs string comparison) The point of this isn't performance, it's convenience.
This looks very nice. But could anyone tell if this is really faster than the mundane if else control flow method?
Thanks.
exactly the same as mine !
perfect
Smart!
This comment is hidden because it contains spoiler information about the solution
This is so smart
This comment is hidden because it contains spoiler information about the solution
Loading more items...