Ad
  • Custom User Avatar

    I'm done [0,56,12,66,99] , but it's timeout

  • Custom User Avatar

    seems as usual,nothing changed

  • Custom User Avatar

    This issue still preserves and is very annoying.

    I also tracked the map just to find that "correct" solutions is in fact wrong.

  • Custom User Avatar

    Yup that was the problem

  • Custom User Avatar

    Does your cache work for functions with any number of arguments?

  • Custom User Avatar

    There seems to be a problem with the way I generated the map for the last test case. There are actually multiple roads leading from 12 to 66 and from 66 to 99 on the test map. Editing the test case would be the right thing to do, but I'm too lazy for that, so I'll edit the description instead.

  • Custom User Avatar

    I am also running into this issue, dumped out the map to the console and walked both paths manually and do not understand why [0,56,99] is not the correct solution, am I misreading the problem?

  • Default User Avatar

    I belive that the problem is in the "If there are several such routes, pick any"...

  • Custom User Avatar

    Just calling the function for the test case 'should return correct result even for objects as arguments' is causing a 'TypeError: Can't call method on undefined' exception for me. Problem seems to be in the test case function, is the kata broken?

  • Custom User Avatar

    I'm having trouble passing the fourth test case, it seems like the answer is incorrect (though I have difficulty believing that since other people have passed it). I get the path [0,56,99] (cost of 8) and the answer is [0,56,12,66,99] (cost of 18), I've manually checked and both paths are valid, obeying one way roads (my original implementation made all roads two way which gave me this problem on the third case).

    Is there some part of the description I am missing? I don't want to invest further time in this if it's a buggy test case.

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution