Minimum Number of Lines to Cover Points
Try to solve the Minimum Number of Lines to Cover Points problem.
We'll cover the following
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
Level up your interview prep. Join Educative to access 70+ hands-on prep courses.