Education + Jobs Hiring Website - 2025
0 like 0 dislike
894 views

3. There are three vertices ABC given which may or may not form a triangle. also given are two points P and Q . If the three vertices do not form a valid triangle, return 0. If both points P and Q lie inside the triangle, return 1. If only one of the points lies inside return 2 and if both lie outside return 3. Points lying on the triangle are also considered part of the triangle. Input is in the form of x1,y1,x2,y2,x3,y3,px,py,qx,qy(all integers).

in Online Assessments by Expert (135,430 points) | 894 views

Please log in or register to answer this question.