You are given a drones, where drones[i] = [x_i, y_i, range_i] represents the coordinates range_i of the target = [tx, ty] representing the coordinates of a target.
The Manhattan distance between a drone at target at target if the Manhattan distance between them is less than or equal to its range_i.
Return the index of the drone that can reach the target with the minimum Manhattan distance. If there is a tie, return the smallest index. If no drone can reach the target, return
Constraints:
drones.length
drones[i].length
target.length
You are given a drones, where drones[i] = [x_i, y_i, range_i] represents the coordinates range_i of the target = [tx, ty] representing the coordinates of a target.
The Manhattan distance between a drone at target at target if the Manhattan distance between them is less than or equal to its range_i.
Return the index of the drone that can reach the target with the minimum Manhattan distance. If there is a tie, return the smallest index. If no drone can reach the target, return
Constraints:
drones.length
drones[i].length
target.length