- 0of 0 votes
Given the following input:- tnutty2k8 August 17, 2017 in United States
Array: array of integer coordinates(x,y) of length N
return a integer M that represents the maximum number of points that falls within the same line.
Array: [ [0,0], [1,1], [3, 12] ]
Output: 2# [0,0] and [1,1] falls in the same line. [3,12] falls on a different line. Thus the maximum number of points that falls on the same line is 2
| Report Duplicate | Flag | PURGE
Open Chat in New Window