guiguan.net
LeetCode in Swift: Max Points on a Line
Problem Statement Given n points on a 2D plane, find the maximum number of points that lie on the same straight line. Original LeetCode problem page My Solution in Swift The basic idea is to calcul…