Check if a point is in a triange
CodeChefOpen on judge ↗
Write a function to return a boolean indicating if the given input point is in a triangle covered by a given set of points. For example, check if the point 2,3 is inside the triangle formed by (0,0) (0,30) and (20,0) Input x,y co-ordinates of 3 points covering the traingle and x,y co-ordinates of one test point all in one line separated by space Eg: 0 0 10 20 20 0 10 20 Output True indicati
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start