kgisl / algorithms

HackerRank, LeetCode, and Geeks for Geeks problem solutions
MIT License
1 stars 2 forks source link

BFS in C++ #5

Open kgashok opened 8 years ago

kgashok commented 8 years ago

https://github.com/kgashok/HackerRank/blob/master/Algorithms/Graph%20Theory/Breadth%20First%20Search:%20Shortest%20Reach/main.cpp

Not useful at all. But this can also be refactored to a better OOP version

kgashok commented 8 years ago

http://www.geeksforgeeks.org/breadth-first-traversal-for-a-graph/ is a more structured version