DIY: Number of Provinces
Understand how to analyze a connectivity matrix to determine groups of connected cities called provinces. Learn to implement a function that counts these provinces by exploring direct and indirect city connections, preparing you for related coding interview problems.
We'll cover the following...
We'll cover the following...
Problem statement
Suppose there are n cities, where some are ...