Detect Cycle in Undirected Graph
Determine if an undirected graph contains a cycle
Longest Consecutive Sequence
Find the length of the longest consecutive elements sequence in an unsorted array.
Minimum Spanning Tree
Find the minimum spanning tree of a weighted undirected graph using Kruskal's and Prim's algorithms
Number of Islands
Count the number of islands in a 2D grid