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.
men i love using lambda ;)
I've left Stackoverflow link there - check this response https://stackoverflow.com/a/32882220
There are some explanations
how does the is_prime function work??
Array
doesn't need any references andContains
is fromSystem.Linq
there are methods Array and Contains
frrr
This comment is hidden because it contains spoiler information about the solution
wOw, looks pretty
You are totally right. Thanks for this comment. But a lot of time has passed since I wrote this. And it was just like "hmmm, can I write it in one line in a couple of minutes?". Now I'm working as a middle .Net developer and I would never do that in my production code. My Upper solution is extremely slow.
You're doing the ToLower inside the loop, so you're doing the same thing (probably the most time consuming step in the whole function) over & over 26 times.
Best solution, imo. I was straining to figure out how to do this and couldn't reason it through at 11pm..
Nice work!
This comment is hidden because it contains spoiler information about the solution