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.
I'm done [0,56,12,66,99] , but it's timeout
seems as usual,nothing changed
This issue still preserves and is very annoying.
I also tracked the map just to find that "correct" solutions is in fact wrong.
Yup that was the problem
Does your cache work for functions with any number of arguments?
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.
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?
I belive that the problem is in the "If there are several such routes, pick any"...
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?
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.
This comment is hidden because it contains spoiler information about the solution