43 DFS recursive Easy Graphs

Traverse a graph depth-first using recursion.

44 Detect cycle in undirected graph Medium Graphs

Detect if an undirected graph contains a cycle.

45 Count connected components Easy Graphs

Count the number of connected components in an undirected graph.

48 Factorial Easy Recursion

Compute n! recursively.

98 Number of islands Medium Advanced Graphs

Count islands in a 2D grid of '1' (land) and '0' (water).

99 Clone graph Medium Advanced Graphs

Deep copy a graph. Each node has a value and neighbor list.

100 Flood fill Easy Advanced Graphs

Change all connected cells of the same color starting from (sr, sc).

141 Count Good Nodes in Binary Tree Medium Trees

Count nodes where the node's value is greater than or equal to all values on the path from root.

145 Surrounded Regions Medium Graphs

Given a board of 'X' and 'O', capture all regions surrounded by 'X' (flip 'O' to 'X'), except those connected to the border.