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 agree the only positive side to list comprehension is just how consise it is and the speed of execution (it runs faster than traditional nested loops).
And why do you downvote my answers explaining why you should use spoiler flag? You can simply see the homepage and realize that, I'm not saying it's obvious, hence, my posts explaining why. In fact I suggested the spoiler flag was marked by default in solutions or adding a placeholder, but it didn't happen so, the best I can do is tell the users that don't know how it works, what should be done.
@Chrono79 I have no idea how someone is supposed to know that replies/comments in the solution discussion are visible on the homepage. I just joined codewars and I had no idea it works like that if I didn't see your comment. I wouldn't have known I need to put a spoiler flag in a reply to the solution. If you want that to happen, there needs to be some announcement somewhere that comments posted here are visible on the homepage without a spoiler flag.
Absolutely beautiful solution, what do I have to look for if I want to learn cool number theory like this? My maths is pretty bad, but I love learning about these sort of things.
Your posts here are visible in the homepage discourse if you don't use it.
but I'm replying to the...soluion...itself? So i dont think spoiler flag is nessesary, unless there is a feature never heard about on code wars where we can look at solutions first
I can't think why that would be interesting, but what is stopping you from cut/paste and running it to see for yourself?
Please use spoiler flag next time.
10/10 for dark magic sorcery, 1/10 for readability (and making me go blind). I don't allow this kind of sorcery in my projects btw. Now...I shall be on my way. Seriously though, I'm curious about the running time of this solution
Comments?
this is the best practice, it's a closed form solution. Mathematics studies paid off.
This comment is hidden because it contains spoiler information about the solution
That is the thing, we have to consider all the cornercases. As, programmers we must be prepared how users are going to use the software.
https://docs.codewars.com/training/troubleshooting#expected-the-same
This comment is hidden because it contains spoiler information about the solution
Loading more items...