← Morgan Stanley questions

Count straight lines from graph points

Filed under Morgan Stanley

Given a set of points on a 2D plane, find the maximum number of points that lie on the same straight line, or count unique straight lines formed by the points.

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 Morgan Stanley questions

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