[LeetCode] Minimum Number of Lines to Cover Points

1 · · Aug. 3, 2022, 1:34 p.m.
2152. Minimum Number of Lines to Cover Points You are given an array points where points[i] = [xi, yi] represents a point on an X-Y plane. Straight lines are going to be added to the X-Y plane, such that every point is covered by at least one line. Return the minimum number of straight lines needed to cover all the points. ...