← All problemsSign in

Raju & his sheep

Raju has a large farm that has a meadow with grazing sheep. He has two sons to look after the sheep. Son 1 wakes up early in the morning and leads the sheep to graze on the lawn, and Son 2 comes in the evening and collects all the sheep. There are n sheep on Raju's farm, and each of them contains a unique number from 1 to n to distinguish them as they are so much alike and to record the health of

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