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.
when using list comprehensions, if you have no else to add, you should use the if after the for not before it. I guess that's the reason
try it yourself.
I've tried both solutions on the same dataset as here, then added some random generated data also. And at the average my solution is faster (at least on my machine & my test method). But anyway due to Python3 is an interpreted language it will be slow always.
P.s. your solution has better performance than mine also, good job!
Its funny that you consider performant code the most important factor while complaining about a more performant solution than your own.
This comment is hidden because it contains spoiler information about the solution
я в шоке, это прекрасно
Useful when you want to learn 'not in' list
nice job
I tried this one but it kept asking me to add an else statement
Kata retired.
This comment is hidden because it contains spoiler information about the solution
yes! they are so difficult to understand for beginners
I did it this way and was so proud of myself for figuring out the list comprehension XD
OMG, thank you so much for this. I kept seeing this syntax in katas and had no idea what was going on. Appreciate it so much!
did the same hehe
This comment is hidden because it contains spoiler information about the solution
Loading more items...