Pergunta de entrevista da empresa Nalashaa Solutions

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