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

Continue reading “Review: Detect Circle In Graph”

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

Continue reading “Review: Detect Circle In Graph”

Handy CheatSheet for your code interview. Common code templates, typical problems by categories, etc.

Continue reading “CheatSheet: Leetcode For Code Interview”

Union find is helpful to build relationship among different sets

Key operations: union, find, etc.

Continue reading “Review: Union Find Problems”