We have got two line.And we know the line's start and end point cordinate. And if they intersect we will write "Yes" or if they dont intersect write "No" . Forexample line1 start (-2,2) and end (2,2) line2 start (-3,-2) and end (2,3) The lines are intersect. We will write "Yes". Input : -2 2 2 2 -3 -2 2 3
Output : "Yes"
I need this problem's solution . Thanks.