← All problemsSign in

Straight lines

Chef is teaching Sourav Straight lines on Co-ordinate system. Chef gave him $N$ points having $(x$i$,y$i$)$ as co-ordinates (no two points will be identical), and asked him to make straight lines by joining these points, but Chef hates the axes and so he only wants straight lines $neither$ parallel to $X$-$axis$ $nor$ parallel to $Y$-$axis$. Sourav wonders how many straight lines he can make by

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start