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.
Awesome Kata! I popped in back on Codewars after a long while and such performance challenge was exactly what I needed :) Thought it will be done in couple minutes, took a bit longer :D I agree with other comment that it would be good to mention in description performance will be important to pass random tests.
Approved!
Super fun Kata. There are so few JavaScript Katas that expect to work with HTML inputs and/or outputs, that every one of those deserves a huge credit :)
Also, thanks to this particular one I relized that if you pass true into slice() method, it interprets it as 1, making exluding the header row in this case super easy.
Made an initial attemp to see what else do I have to work with on non trivial inputs, but instead got a lot of fails like this on random tests:
Expected: [8, 5, 7, 14, 8, 5], instead got: [8, 5, 7, 14, 8, 5]
My code is still not working properly, but for most of random tests it seems to return same values as expected. What can be a reason for this? I try to understand what's going on.
Got it. I added such case in both fixed and random tests, updated solution and description accordingly. Thanks for all your help!
Added random tests. It's my first ever Kata, hopefully I managed to put it together properly.
Original description I made was innacurate, I planned it to be a code for specific online shop due to specific url structure. Now description mentions the domain will always be the same.
For p- in product names, I added a test for that case and updated complete solution accordingly, thanks for pointing that out.
Description updated to mention ".html" at the end
I absolutely love this series of Kata, and this one in particular was very fun to work with. I have limited experience in coding and algorithms, so they push me to be creative. Thanks a ton for your work in publishing those!