← All problemsSign in

The romantic couple

KMS loves Isha a lot but Isha is still not sure about KMS . Therefore , KMS decides to take Isha on a trip on cruise to impress her. Isha is unfortunately kidnapped by pirates . Pirates will leave Isha only if KMS is able to solve the problem given by pirates. Pirates have written down the numbers in a line and is asking KMS to tell the median from some starting position to another. KMS needs you

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