Childrens Day
CodeChefOpen on judge ↗
It is children's day and your teacher has organized a contest in which the winner gets candies. You have won the contest but your teacher is not giving away the candies easily. Your teacher has placed certain number of candies into $N$ boxes .You are told not to take candies from adjacent boxes. Given an integer array $C$ representing the amount of candies of each box, Print the maximum amount of
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