Question d’entretien chez Nalashaa Solutions

Detect a cycle in a directed/undirected graph using DFS.