Message on Whatsapp 8879355057 for DSA(OA + Interview) + Fullstack Dev Training + 1-1 Personalized Mentoring to get 10+LPA Job
0 like 0 dislike
408 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 (133,970 points) | 408 views

Please log in or register to answer this question.