We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
BFS: Shortest Reach
BFS: Shortest Reach
Sort by
recency
|
20 Discussions
|
Please Login in order to post a comment
not sure why my python3 solution fails nearly half the test cases. Any ideas? I think it may have to do with deleting distances[start]
Kotlin code
python3 sol
My Javascript solution that passes all test cases with explanations: