Network Cabling puzzle discussion


#168

If you know the solution to it, Can you please tellme that how did you solved it so easily… it would be a great pleasure … thankyou.


#169

I am also struggling on testcase 7. I get a result of 3972, while the outcome should be 3142894.

What I do is:

  1. Find the median
  2. Calculate from each house the distance Y from that median
  3. Take the smallest X and substract that from the largest X
  4. The sum of steps 2 and 3 results in 3972.

I saw another post that suggested similar logic and also warned for testcase 7, but unfortunately I could not find that post back. Does anyone have suggestions to help me further? Thank you