You are given an array start = [startX, startY] representing your initial position and an array target = [targetX, targetY] representing your destination on a
You can travel between any two points
Additionally, you are provided with a specialRoads where specialRoads[i] = [x1_i, y1_i, x2_i, y2_i, cost_i] represents a directed special road that allows you to travel from cost_i. Each special road can be used any number of times.
Return the minimum cost required to travel from start to target.
Constraints:
start.length
startX targetX
startY targetY
specialRoads.length
specialRoads[i].length
startX targetX
startY targetY
You are given an array start = [startX, startY] representing your initial position and an array target = [targetX, targetY] representing your destination on a
You can travel between any two points
Additionally, you are provided with a specialRoads where specialRoads[i] = [x1_i, y1_i, x2_i, y2_i, cost_i] represents a directed special road that allows you to travel from cost_i. Each special road can be used any number of times.
Return the minimum cost required to travel from start to target.
Constraints:
start.length
startX targetX
startY targetY
specialRoads.length
specialRoads[i].length
startX targetX
startY targetY