← All problemsSign in

Kejriwal and Internet (Easy-medium)

Mr Kejriwal recently became the CM of delhi. So as promissed, he has decided to make complete capital Internet connected with optical fiber connectivity. He treats the capital as a Cartesian plane where each block in the cartesean plane represents a house. He places a optical fiber between point (x1,y1) and point (x2,y2). the fiber is a straight line from (x1,y1) to (x2,y2) and the fiber is only

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