thepranaygupta / Data-Structures-and-Algorithms

A repository that contains all the Data Structures and Algorithms concepts and their implementation in several ways, programming questions and Interview questions. The main aim of this repository is to help students who are learning Data Structures and Algorithms or preparing for an interview.
https://thepranaygupta.github.io/Data-Structures-and-Algorithms/
GNU General Public License v3.0
1.04k stars 374 forks source link

Topological Ordering using Kahns Algorithm. #381

Open Rohithv07 opened 2 years ago

Rohithv07 commented 2 years ago

There is Kahn's algorithm which can be used to implement the topological ordering or sort. It uses BFS concept and there is only dfs solution discussed. I am creating a PR for the same. #382

Rohithv07 commented 2 years ago

Added a PR for the same, please review

Rohithv07 commented 2 years ago

@thepranaygupta please review this issue and the code. Thank you

Rohithv07 commented 1 year ago

Any reviews here