Friend Circles / Number of Provinces

Asked at OpenAI · Coding Questions · Difficulty: Medium

There are **n** users labeled from `0` to `n - 1`. You are given an `n x n` adjacency matrix `isConnected`:

Loading the problem…