error
Disjiont set find
hello @ayu2321
r u giving input correctly?
in input m_pairs is 5. but u have given only 3 input.
n_cities is 3 but in input u are giving 3 and 4 as city number.
give correct input and then check
there are 5 cities 0 1 2 3 4
three pairs (0, 1),(2, 3),(0, 4)
then in ur input first line should be
3 5
now also it is giving wrong output
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.