Check if two line segments intersect
Filed under Myntra
The question
Given two 2D line segments defined by their endpoints (4 points total), determine whether the two segments intersect each other.
No write-up yet. Related questions below have one.
Related Myntra questions
Collected from public candidate posts and coding forums. Updated Nov 2026.