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.
Haha that is some readable code.
Good one :D
the name <3
freakin good nice 👌
Loved this Kata. Thx to the creator, one of my favourites. :)
pretty clever with the array.
Just of curiosity how long did it take you to see the pattern?
I think the thing is that you forgot the case where string ends with a space. The result looks right but it's missing a space I had the same problem. I don't like this edge case it breaks the beauty of the code. But whatever
he is adding on the w ( the sum ) the difference of the two elements. Because the second one has a "-" before it, it means the negative value of the secondary diagonal is stored.
In the end he then just can compare whether w < 0 ( secondary wins ) or w > 0 ( primary wins ). Pretty cool.
Wow this is cool!
That is not a 7kyu
You can do it without reversing. Also it would be better to make result(n), cause you know how much elements you have.
pretty clever with the hor function. Had to think about it till it got me. Rly nice. +1
no break; needed return breaks automatically
This are 3 iterations. That is not really efficient.
Loading more items...