← All problemsSign in

Priya,s Birthday

Priya is a lovely girl, her parents love her so much. One fine day, there was Priya’s birthday. She invited her school friends. They all enjoyed her party at her home and at the end of the party, her parents took all children to a chocolate shop, and offered them to take as many chocolates as they want individually. The excitement of the children could not be measured. Each child wanted a specific

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