
Given the array houses where houses[i] is the location of the i ^th house along a street and an integer k , allocate k mailboxes in the street.
Return the minimum total distance between each house and its nearest mailbox .
The test cases are generated so that the answer fits in a 32-bit integer.
1 <= k <= houses.length <= 1001 <= houses[i] <= 10 ^4All the integers of houses are unique .