Problem bank
MediumGraphsNeetCode 150 · #81/150

Clone Graph

  1. 1
    Learn the pattern

    Grid or network traversal → BFS for shortest path, DFS for connectivity/shape. Track visited on push.

  2. 2
    Watch it run

    See this exact pattern animated step by step before you touch the keyboard.

    Open visualizer
  3. 3
    Solve it

    Solve it on LeetCode, then mark it solved here to keep your streak alive.

Number of IslandsMax Area of Island