You are given two integer arrays source and target, each of length source and the destination position target of a bishop on an
In a single move, a bishop can move any number of squares along any diagonal direction without leaving the board.
Return the minimum number of moves needed to move the bishop from source to target. If it is impossible to reach target, return
Constraints:
source.length target.length
sr, sc, tr, tc source sr, sc target tr, tc
source target
You are given two integer arrays source and target, each of length source and the destination position target of a bishop on an
In a single move, a bishop can move any number of squares along any diagonal direction without leaving the board.
Return the minimum number of moves needed to move the bishop from source to target. If it is impossible to reach target, return
Constraints:
source.length target.length
sr, sc, tr, tc source sr, sc target tr, tc
source target