Detect whether there is a circle/loop in directed/undirected graph

# Tag: review

## Review: Binary tree traversal

## Review: Union Find Problems

Union find is helpful to build relationship among different sets

Key operations: union, find, etc.

Detect whether there is a circle/loop in directed/undirected graph

Union find is helpful to build relationship among different sets

Key operations: union, find, etc.