← All problemsSign in

Stupid Nezzar

Nezzar a school student was asked to submit an assignment. He submit on time but as he is very overconfident he answered all questions incorrectly . So , As you are a monitor of class , Teacher asked you to correct the Nezzar’s assignment. But , As you are very Smart you find the pattern in the problem by which it can be solved efficiently. Assignment is, You are given an array of N elements . A

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