Detect cycles and order with DFS
Company: Meta
Role: Machine Learning Engineer
Category: Coding & Algorithms
Difficulty: Medium
Interview Round: Onsite
Quick Answer: This question evaluates understanding and implementation of graph traversal concepts such as depth-first search, explicit cycle detection, and topological ordering, and falls within the coding and algorithms domain, requiring practical application alongside conceptual understanding.