triangles rectangles and quadrilaterals
CodeChefOpen on judge ↗
A quadrilateral can be inscribed in a rectangle by connecting the extreme edges such that two opposite sides of the rectangle are parallel to x- axis and the other two to the y-axis. the points of quadrilateral are (Ax,Ay),(Bx,By),(Cx,Cy),(Dx,Dy). While inscribing atleast two points touch the rectangle ,if a two straight lines are projected perpendicular to sides of rectangle from each non touchin
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