HF RL Explorer

Task: Implement an Efficient Cycle Detection Algorithm for Directed Graphs

Task: Implement an Efficient Cycle Detection Algorithm for Directed Graphs: a task in Terminal-Lego-15k (Harbor dataset). Implement a program that efficiently detects all cycles in a directed graph. The graph represents a job scheduling system where nodes are jobs and directed edges represent…

The task

Implement a program that efficiently detects **all cycles** in a directed graph. The graph represents a job scheduling system where nodes are jobs and directed edges represent dependencies between jobs. Your solution must identify all distinct cycles present in the graph so that cyclic dependencies can be reported…

Part of PrimeIntellect/Terminal-Lego-15k.