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.
This kata put a smile on my face. Zach once again flexed about his lightsabers xdd
I mean, come on... look at my solution and how I sweat with it, and you just did a^b – it feels like cheating, haha ^^'
This is a really clever solution! I don’t often see the use of
$&
, and I tend to forget that we can use it like that. The negation part is also quite clever. Very nice! ;)sure.
You made my evening ! :D
I guess we need better tests :D
clever :)
Nice! I didn't know about that. Powerful s#*t !
There are a lot of loops in this solution, but it's clever overall. I believe you can simplify it by returning:
instead of:
Actually, it's not a 100% duplication, and not a duplication at all (at least not intentionally). The kata you're referring to may look similar, but it's completely different.
My kata is much easier, and the argument is always a repetition of the specific string
abab
without any letter repetitions. What I mean is, my tests are always in the form ofabcabc
, notabcb
. That's why it's easier to solve, and I definitely don't consider it a duplication. I can mention the kata you're referring to in the description as an example of a similar but harder kata.100% duplicate: https://www.codewars.com/kata/5491689aff74b9b292000334
cant argue with that!
resolved
I have added random tests.
This is very easy to read. And I guess this is nice practice to write easy-to-read code :)
Loading more items...