LeetCode Solutions

Graph

Connectivity, traversal, components, and graph state propagation. The focus here is DFS, BFS, and component thinking. Official LeetCode problems are linked on every page instead of being mirrored here.

1 published solutions
3 distinct tags
0 easy / 1 medium / 0 hard difficulty mix
May 21, 2026 most recently updated page

Published pages in this category

Every page keeps the problem summary, recognition pattern, reasoning, pitfalls, and the exact C++ source used on the site.

Graph #01

Number of Islands

Medium

Count how many connected land components appear in a binary grid.

Solved graphdfsconnected components