Ad
  • Custom User Avatar

    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.

  • Custom User Avatar
  • Custom User Avatar

    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.

  • Custom User Avatar

    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.

  • Custom User Avatar

    Got it. I added such case in both fixed and random tests, updated solution and description accordingly. Thanks for all your help!

  • Custom User Avatar

    Added random tests. It's my first ever Kata, hopefully I managed to put it together properly.

  • Custom User Avatar

    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.

  • Custom User Avatar

    Description updated to mention ".html" at the end

  • Custom User Avatar

    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!