← All problemsSign in

Friends and Chocolates

Mayank is on a trip to Singapore with his friends Ankur, Abhishek and Raju. Having spent nearly whole of the day walking, visiting places and after hours of sightseeing they decide to eat something. Ankur loves chocolates so he goes and purchases some chocolates. Now they have a lot of chocolates to eat. It’s time now to share the chocolates. Being best of the friends they will be HAPPY only if th

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