Hi,
I have a question regarding problem 12.10, first variant:
"[…] minimizes the sum of the squares of the distances traveled by the residents".
Do we square the total distance traveled by each resident or do we square each segment (leading to a Manhattan distance) traveled by each resident (going from the building to the mailbox - one segment, coming from the mailbox - one segment) ?