← All problemsSign in

Dark Chocolates

Emma is a little girl who loves to eat chocolates, especially dark chocolates. One day when she’s at school, her teacher decides to test the aptitude of the children in the class and makes a grid consisting of dark chocolates and empty wrappers of chocolates. At each position on the grid, there lies a pile of dark chocolates (or a pile of empty wrappers). The teacher decides to play a game amongst

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