← Amazon questions

Minimum steps in infinite grid

Filed under Amazon

Given a sequence of points in an infinite 2D grid, find the minimum number of steps to visit all points in the given order. You can move to any of the 8 adjacent cells (horizontal, vertical, or…

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Amazon questions

Collected from public candidate posts and coding forums. Updated Nov 2026.