Topic: Queue Problem / Level: advanced

Problem: Write a program to find the shortest distance from a source node to all other nodes in a graph using BFS.

Run the code to see the output here...