547. Number of Provinces In this question, the connected nodes are represented in the form of an Adjacency Matrix, so, first of all, we have to make an adjacency list. Once the adjacency list is created then we can count the number of provinces by si...
Markdown supported · ⌘↵ to post
No responses yet.