← All problemsSign in

Chef and Daughter

Chef daughters Sereja, Churu, and Lucy asks chef to buy dolls for them. So, Chef takes them to a doll shop. In the shop, N dolls were arranged on a rack along with Pi price on them. Chef had to buy dolls for all of his daughters. So, he chooses the dolls in such a way that the youngest daughter(Lucy) got the costly one then followed by the middle daughter(Churu) and the eldest daughter got the ch

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