← Amazon questions
CodingReported in a candidate post, Jul 2025

Maximum number of points on a single line

Filed under Amazon

Given an array of points on a 2-D plane as (x, y) coordinates, return the maximum number of points that lie on the same straight line. Follow-up: what if the slope cannot be stored accurately even in…

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.