Search⌘ K
AI Features

Number of Provinces

Number of Provinces gives a matrix showing which cities are directly linked. Return the number of groups connected directly or indirectly, with every city in a group connected to the others.

Statement

Given ...