Problem 133 · Medium

Clone Graph

DFS with a visited map to deep-clone nodes and their adjacency lists.

Open the interactive visualisation