← All problemsSign in

Bhide and Barricades

Bhide was on his way to deliver $Aachar$ $and$ $Papad $ but as soon as he crossed Abdul’s soda shop, Abdul stopped him and told him that there are $n$ barricades ahead and each barricade had an integer $a_i$ written on it and as he would cross all the barricades, there are some intellectuals standing who will award $10000$ Rupees if a person will answer their question correctly. The question stat

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