Problem Link:Difficulty:Medium Problem:We need to find the biggest set of parallel lines from the given lines. Explanation:Equation of line is given by $ ax+by+c=0$ eq(1).where a,b,c are coefficients. And the slopeintercept form of the line is given by $y = mx + C$ eq(2). where m is the slope of line and C is the yintercept. Comparing eq(1) and eq(2), we get: $ m = a/b$ and $C = c/b$ Now for two lines to be parallel, they must have the same slope and different yintercept. Different yintercept because if two lines have same slope and yintercept then both lines are same and they will meet at every point. Solution:Author's solution can be found here. asked 13 May '17, 19:27

In this problem why we are not having Precision error due to floating point arithmetic .As in your solution you are taking m = a/b and y intercept = c/a.can you explain ?? answered 30 May '17, 16:56
