Problem Reference - Hackerrank
This updated information has been further expanded upon on my new website. You can find the updated details here: https://k5kc.com/cs/problems/number-of-provinces/.
Problem
There areYou are given a
Y or N. If Input Format
First line of the input contains an integer
Output Format
Print the maximum number of friend circles.
Constraints
Each element of matrix friends will be
Y or N. Number of rows and columns will be equal in the matrix.
Here is the code
Thanks







0 comments:
Post a Comment