ฝึกคณิตศาสตร์ไม่ต่อเนื่อง

Graph Cycle Detection

เรียกดูบทเรียน Graph Cycle Detection ภายใน Algorithmic Thinking and Complexity

1 บทเรียน · 5 คำถาม

Algorithmic Thinking and Complexity

Big-O, loop analysis, graph algorithms, invariants, and developer-focused discrete math.

1 บทเรียน · 410 คำถาม

Graph Cycle Detection

1 บทเรียน · 5 คำถาม

Least You Need to Know: Cycle Detection in Directed and Undirected Graphs
Cycle detection depends on graph type. In undirected graphs, you must ignore the edge back to the parent. In directed graphs, the key signal is whether DFS re-enters a node that is still on the current recursion path.
เปิดบทเรียน