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.