Save The Laddus
CodeChefOpen on judge ↗
Lakshika was bringing some laddus to her home for diwali celebration. But on her way, some of the laddus fell on the road. There is a cat on the road. Consider that the house of Lakshika is at a distance of n from the cat's initial position. Consider that all laddus lie between the cat and Lakshika’s home in one straight line. More than one laddu can be present at one point. The i-th laddu is lo
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