Coding

Clone an Undirected Graph

Clone an undirected graph.

Input: adjList = [[]]

Output: [[]]

Explanation: Creates a new, deeply cloned graph containing only one single node with zero connected neighbors.

Was asked at

Practice this question with AI

First session is free - no credit card required.

Go Premium

More interviews, more skills, more success.

No answers yet

Be the first to share your approach to this question

Practice More Questions