Question d’entretien chez X

How to detect a cycle in a directed graph

Réponse à la question d'entretien

Utilisateur anonyme

22 févr. 2019

DFS and having a visited[] array and mark the visited when you visit the node.