Line Intersections
CodeChefOpen on judge ↗
You are given N lines (which extend indefinitely in both directions) on the X-Y plane. Some of these lines intersect with each other and others don't (parallel lines). We call each such intersection, an intersection point. You have to find the Kth intersection from the bottom. In particular, you have to output the smallest value V, such that there are at least K intersection points whose Y-coo
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