You are viewing a single comment's thread. Return to all comments →
Just wanted to highlight using lists as queues should be avoided
using lists as queues should be avoided
I wrote the code -- perfectly, using lists as a queue. Failed Test Case 5 (ran out of time).
Reimplemented using queue library and it worked.
queue
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 →
Just wanted to highlight
using lists as queues should be avoided
I wrote the code -- perfectly, using lists as a queue. Failed Test Case 5 (ran out of time).
Reimplemented using
queue
library and it worked.