← Accolite questions
CodingMedium

Detect Cycle in Directed Graph

Filed under Accolite · Also reported at EagleView

Given a directed graph represented by an adjacency list, write code to detect if there is a cycle present in the graph.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Accolite questions

Collected from public candidate posts and coding forums. Updated Nov 2026.