While finding the contribution of each edge of the graph do we assume that each person is in their original place?
Let’s say that for finding the contribution of edge between B and C, do we assume that A,B,C and D are in their original position? because in the previous case of edge between C and D there was a movement of 1 person from both side. So how can we ensure that no person ends up being in their original place which violates condition 1 of the problem?
Holiday accomodation
hello @subhamjaiswal885
initially they will be in original position but while counting an edge contribution they will change thier places.
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.