← All problemsSign in

Help Alice

Little Alice is quite good at mathematics and did all her homeworks in time.But unfortunately, she missed her yesterday's statistics class because of the annual painting competition.Though,she was very happy to get the first prize at painting competition, she wasn't able to complete her statistics homework. As a result,she got punished by her mathematics teacher. She was given an array of 'N' elem

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