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.
Test Case 1 is wrong:
the distance to node 6 is expected to be 6 but in the test case data there is no edge 16->6, interestingly there seems to be 2 16->69 edges in the input, not sure if that was intentional.
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Breadth First Search: Shortest Reach
You are viewing a single comment's thread. Return to all comments →
Test Case 1 is wrong: the distance to node 6 is expected to be 6 but in the test case data there is no edge 16->6, interestingly there seems to be 2 16->69 edges in the input, not sure if that was intentional.