Do a DFS Topological Ordering on a given graph and find whether the graph has a cycle or not
If you loved what you read here and feel like we can collaborate to produce some exciting stuff, or if you just want to shoot a question, please feel free to connect with me on LinkedIn