← All problemsSign in

Choco Sticks and there distribution

Jatin has some boxes of choco sticks. He wants to give the choco sticks to his two friends Yatin and Sahil. Jatin is smart and knows that if Yatin got more choco sticks then Sahil will feel bad and if Sahil got more choco sticks then Yatin will feel bad. Jatin decides to distribute the choco sticks in a way that both of them gets equal choco sticks. Jatin also likes maths. So to make the distribut

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