solulubeta
Sign in
NeetCode 150 / Graphs
11.02 · Problem

Clone Graph

Medium DFS with an old → new map 1 video LC 133 Pro

This problem is part of solulu Pro

Given a reference to a node in a connected undirected graph, return a deep copy of the graph. Each node has a val (its 1-based index) and a list of neighbors.

Lifetime ₹1,999 ₹999 · Launch offer
Mark this problem as solved when you are finished.

Item 81 of 150 · updated 2026-10-12