Skip to main content
DevHives

Copy a Connected Graph

Loading editor…

3 examples run when you press Run. Submit checks every hidden test too.

Case 1
Input:
[[3,2],[1,4],[4,1],[2,3]]
Expected:
[[3,2],[1,4],[4,1],[2,3]]
Case 2
Input:
[[]]
Expected:
[[]]
Case 3
Input:
[]
Expected:
[]
Ready

Run checks your code against the 3 examples. Submit checks it against all 93 tests and needs a free account. You can also try ideas in the free JavaScript or Python compiler.