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.
ahhhhh I was checking the length of each list instead of using a valid set for comparison. Nice one
awesome
me too!!
It is really laconic, but it introduces additional temp list which makes it slower than other solutions. Moreover it uses pop to get data from args: it is also slower than just iterating values, but moreover it modifies args. This is not a problem for test, but in real project it might be a problem. So "Clever", but not "Best Practives".
One of the most beautiful and laconic solutions, I'm even surprised that there aren't many "Clever" and "Best Practices" marks. It deserves much more.
clean and witty solution.
isProbablePrime(i) introduces additional time complexity, probability that a number is prime is 1-pow(0.5, i). Even for small i~30 it is almost 1 so it's pointless to pass such big values here.
oh well,that's way easier than i did. Good job!
great solution