You are given an array of points, where points[i] = [xi, yi]. Your task is to determine the minimum time in seconds required to visit all the points in the given order.
Movement rules:
In one second, you can perform any one of the following:
Move vertically by one unit.
Move horizontally by one unit.
Move diagonally (1 unit vertically and 1 unit horizontally in 1 second).
You must visit the points in the exact sequence listed in the array.
You may pass through points that appear later in the order, but they will not count as visits.
Constraints:
points.length
You are given an array of points, where points[i] = [xi, yi]. Your task is to determine the minimum time in seconds required to visit all the points in the given order.
Movement rules:
In one second, you can perform any one of the following:
Move vertically by one unit.
Move horizontally by one unit.
Move diagonally (1 unit vertically and 1 unit horizontally in 1 second).
You must visit the points in the exact sequence listed in the array.
You may pass through points that appear later in the order, but they will not count as visits.
Constraints:
points.length