Minimum Number of Lines to Cover Points
Try to solve the Minimum Number of Lines to Cover Points problem.
Statement
Given a 2D integer array, points
, where points[i]
Note: Straight lines will be added to the XY plane to ensure that every point is covered by at least one line.
Constraints:
points.length
points[i].length
All the points are unique.
Examples
Access this course and 1400+ top-rated courses and projects.