Topic: Queue Problem / Level: advanced

Problem: Write a program to detect a cycle in a directed graph using a queue.

Run the code to see the output here...