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.
This comment is hidden because it contains spoiler information about the solution
Such a short and elegant solution! I'm just starting out with these concepts, and this solution seems like it just returns the first "path" it finds from source to destination rather than the cheapest path. What am I missing?
This comment is hidden because it contains spoiler information about the solution
I think a generalized version of this solution that runs multiple passes and stops only when 'r' remains unchanged for two passes would be a good answer. I made a rough implementation here https://www.codewars.com/kata/reviews/53fbcb9ecfc5f67703000032/groups/5ff218e51d40250001bac79a