← Samsung questions

Cycle Detection in Directed Graph

Filed under Samsung · Also reported at Microsoft

AI-generated: Given a directed graph with V vertices and E edges, determine if the graph contains at least one cycle. The graph is provided as an adjacency list.

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 Samsung questions

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