On a n workers and m bikes, where each worker and bike is positioned at integer coordinates. You are given two arrays: workers, where workers[i] = [] represents the position of the bikes, where bikes[j] = [] represents the position of the
Each worker must be assigned exactly one unique bike, meaning no two workers may be assigned the same bike.
The Manhattan distance between two locations
Return the minimum possible sum of Manhattan distances between each worker and their assigned bike.
Constraints:
n $= $ workers.length
m $= $ bikes.length
n m
workers[i].length
bikes[i].length
workers[i][0], workers[i][1], bikes[i][0], bikes[i][1]
All worker and bike locations are unique.
On a n workers and m bikes, where each worker and bike is positioned at integer coordinates. You are given two arrays: workers, where workers[i] = [] represents the position of the bikes, where bikes[j] = [] represents the position of the
Each worker must be assigned exactly one unique bike, meaning no two workers may be assigned the same bike.
The Manhattan distance between two locations
Return the minimum possible sum of Manhattan distances between each worker and their assigned bike.
Constraints:
n $= $ workers.length
m $= $ bikes.length
n m
workers[i].length
bikes[i].length
workers[i][0], workers[i][1], bikes[i][0], bikes[i][1]
All worker and bike locations are unique.