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.
OMG bro,you show me a new method to play this!That's so interesting!
Wow, You have just shown me that simple task can have awesome and unobvious solutions :)
I had heard that
foldr
can work with infinite lists, but I think this is the first time I've seen a practical application for that (as in it doesn't have to traverse the entire string to start comparing it to the empty one, like I initially thought).Awesome, it is basically a stack.
Я совсем забыл про XOR. Спасибо за лучшее решение!
This comment is hidden because it contains spoiler information about the solution
Hi @steffan153, I'm a beginner in java and I've never seen "<<", could you explain ? The mentioned doc didn't enlighten me a lot... Thanks :)
Bit shift is awesome. Nice job
That's a bitwise operator - the left bit shift.
What kind of magic is this?
most elegant solution
That is elegant.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
^ is the bitwise XOR operator.
https://en.wikipedia.org/wiki/Exclusive_or
Loading more items...