Ad
  • Custom User Avatar

    I think good ol' console.log() can help; you with it.
    And making test increasingly difficult, i.e. start with a trivial case then add "more complex test" until you get to the point you want

  • Custom User Avatar
  • Custom User Avatar

    Sure, but I don't know Python or Ruby, nor I have the time to invest into learning it

  • Custom User Avatar

    The thing is, I never added the Haskell version of my kata, only Javascript. I don't know why it's there, neither how to remove it. Sorry :s

  • Custom User Avatar

    I don't really understand why one would do such a thing, because these are tests, and we're in javascript. In Java the variable would have been final. Anyway, I added a notice not to modify the list. Does that corresponds to what you wanted ?

    By the way, thanks for completing this kata. It has been stuck in the 'Waiting for moderator approval' phase for many months, and I fear it would have been forgotten otherwise.

  • Custom User Avatar

    You sure ? I thought I said the strict necessary to understand the kata, without giving a lecture on graphs. But, you're right, I could put a link to the Wikipedia concepts

    EDIT : Finally, I added a sentence to explain the format of arcs. Is that what you meant ?

    EDIT 2 : I also added the two suggested links

  • Custom User Avatar

    Damn, you're right. I totally forgot that. I just added a test case for the left. Thanks for your comment,

    EDIT : Please tell me if my fix corresponds to your comment, maybe I didn't fully understand it.

  • Custom User Avatar

    I would put a more appropriate and less-generic title.

  • Custom User Avatar

    Very nice kata. Interesting challenge, much different. Instructions are not very clear, but that's the whole point of this kata. Good job ! :)

  • Custom User Avatar

    Hi,

    The error messages for failing tests are way too long (they repeat 'You do not have the right number of elements' a couple of times). Also, there are a few typos in the Instructions section.

    Cheers,

  • Custom User Avatar

    Thank you for your comment,

    As this is the first kata I make, I didn't know thesingle quote trick, I'll correct it.

    I've checked for similar katas on Codewars before creating mine, to avoid duplicating an existing one, and indeed there are similar ones, but they do not work quite the same. For example, there's a kata about finding the shortest path on a graph. But there was none about finding if a graph has a solution or not.

    As for the Solution Setup part, I thought it was only for setting up variables and stuff needed for both the correct solution and the user's solution. Now I know what it is about. I'll check it out