← All problemsSign in

Save Your Friend

Omg! Terrorists have kidnapped your best friend because he had extremely good GPA in last semester. You knew it may happen, so you had put a position detecter in his shoes. Now, you have to find him. Suppose whole Dhanbad is divided into a (X,Y) coordinate system. You know the coordinates of your friend’s position by that detector. Now you are given “N” points in an order, so that these N points f

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