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.
In a sense
Probably True
is arguably better than running virtually forever with no result. :PHey, that's my favorite primality test! Nothing else would come to my mind when testing larger numbers. In practice, 5 rounds is more than enough in most cases, don't need 40. :P
es mas effectivo porque hace operaciones en binario.
aumenta el tiempo de ejecuciĆ³n.
So smart to add the lines to both the top and the botom of the diamond at the same time
nerd :P
I spend 10 minutes thinking hard and bro just does it in three lines...
Could be people copying answers they want to dissect and understand better and then clicking "Submit" to run against the attempt test cases instead of forking them.
Amazing. I will write 100 times "I will look for a closed-form solution" on the blackboard. On second thought however, your solution requires to iterate over the entire sequence to sum the elements, which is not the most efficient approach on average with very long sequences.
This comment is hidden because it contains spoiler information about the solution
match
keyword wasn't available at the time I wrote this solution.It is in kata requirement (only 2 lines) so I suppose it is fine to hardcode y-axis values for "up" and "down".
However you lose support for more than 2-line height, the same goes for 6-line width that you harcoded
Check out mine. You might see an improvement in readability.
nice one
Beautiful !
Afrixa will pass the test, try using IN/LIKE for Afrika and Africa
Loading more items...