โ† MakeMyTrip questions

Find cycle in a graph using DFS

Filed under MakeMyTrip

Given a directed or undirected graph, compare different approaches to detect a cycle, with a specific focus on the Depth-First Search (DFS) approach.

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

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