AlgoMaster Logo

Clone Graph

adjList=[[2,4],[1,3],[2,4],[1,3]]
0 / 43
originalclone1234start
algomaster.io
Step:Clone the graph: copy every node and every edge, starting the DFS at node 1