CHOCOLATES
CodeChefOpen on judge ↗
Rose and her friends go to a store to pick some chocolates. There were $N$ rows each row containing pile of chocolates of same type(i.e of same calorie value) ,while everyone started picking chocolates from the first row , she goes to the last row and starts picking chocolates and always picks the first larger calorie value chocolate next to the current chocolate if she finds the larger one . Help
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.
Sign in to chat with the tutor and save your progress.
Sign in to start