unnested
Learn
Practice
Pro
Sign in
Number of Connected Components in an Undirected Graph - Medium Python Graphs Interview Problem | Unnested
Number of Connected Components in an Undirected Graph
Medium
←
→
Graphs
problem
submissions
Pro problem
Upgrade to Unnested Pro to unlock Medium and Hard problems.
View pricing
Python 3
Save failed
All tests passed
Test Cases
Output
Case 1
Log in to run
Log in to submit