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 comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
ChristmasTreeBuilder🎄
code war always have new thing to learn,
While using reduce looks cool, it is better to use simple for loop wherre you can stop once you found the first marker
Sexy and clever.
its seems simple and readable
could anyone explain why my solution works slower than this one? It looks like it's not supposed to be so, but I can't find out why it is
Oh! Is this what I was hoping to come up with when I try using regex?
Yes, your code is even faster than mine
Btw I check the performance on jsbench.me, it's a great site
hi, try my mine please, I think I achieved the best speed result
yes, in the past I was programming on different languages from Asm x86 to ABAP/4, and they did not have regular expression functionality) so I was simply not familiar with this, thus it looked unreadable for me at that time.
I am not good with capture groups yet. I'm only good with assertions, character classes, and quantifiers. I will get good with capture groups eventually.
It's not hard to understand, all you have to do is write a comment explaining what it does and you can also tell by looking at the "http" what it is that we are looking for.
Thank you everyone in the comments for explaining how this solution works!
Loading more items...