-- Let's assume there are N number of lines in 2D coordinate system and their start and end points - `(X1s,X1e),(X2s,X2e),......(XNs,XNe) where s = start and e = end`, we need to draw a line perpendicular to X-axis (Parallel to Y-axis) such that the intersects maximum number of given lines and also find the points of intersection if possible (If multiple intersection points possible - return any of them).
0 commit comments