โ† Amazon questions

Min coordinate distance

Filed under Amazon

Given a list of 2D coordinates (xi, yi) and a range [ymin, ymax], find the minimum value of x^2 + y^2 among all points where y is within the given range.

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.