+ 1
How can I solve a problem with BFS Algorithm?
I want a code of BFS Algorithm.
2 Answers
+ 2
First of all create adjection list, and then insert them in queue, if you know data structure.
+ 1
This is my simple implementation of bfs in c++ using adjacency list
https://code.sololearn.com/cn54cie7EYys/?ref=app