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.
Hello, nice kata !
I get some weird results sometimes though.
I'll name airports by their index in the given list.
Sometime, I find a route shorter that your solution but with an extra stop.
For example,
range : 6883
my route is : 91 -> 86 -> 163
distance : 6596 + 269 = 6865
expected route is : 91 -> 163
distance : 6866
I have manually checked, and the distanceTo method give these results.
Do you know how this could happen ?
I still passed the kata cause this does not always happen depending on random tests...