in solve function why x-- and y-- is done
Cycle detection using dsu
hello @ayu2321
this is done to convert 1 based indexing to 0 based indexing.
for ex (1,2) in based indexing is equivalent to (0,1) in 0 based
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.