You are viewing a single comment's thread. Return to all comments →
Yeah, that's exactly what Gary shows in its Hackerrank solve videos on YouTube. Slight optimization there.
Thanks for your code. Actually, the implementation of graphs can vary a lot. This was helpful.
Seems like cookies are disabled on this browser, please enable them to open this website
BFS: Shortest Reach in a Graph
You are viewing a single comment's thread. Return to all comments →
Yeah, that's exactly what Gary shows in its Hackerrank solve videos on YouTube. Slight optimization there.
Thanks for your code. Actually, the implementation of graphs can vary a lot. This was helpful.