Skip to main content
Admissions guidance, study banks, and career tools — get started on Shalyam

Minimum Time Visiting All Points

On a 2D plane you can move one unit vertically, horizontally or diagonally per second. Print the minimum time to visit the given points in the given order.

Constraints

1 <= n <= 100 -1000 <= x, y <= 1000

Discussion

No discussions yet.

Rewards · v2.1

Get Exclusive Insights with Every Issue

Join Shalyam Newsletter

Stay ahead in education, research, and innovation—straight to your inbox.