Munna Bhai
CodeChefOpen on judge ↗
One of our most talented Doctors Munna Bhai M.B.B.S has done eye operations of $N$ patients. Now Munna Bhai has given his fellow, Circuit a task to check if each patient is now able to see properly or not (and hence check if each operation was successful or not) . Circuit made these $N$ patients to stand in a row. Let's say height of the $i$th patient is $A[i]$. Now circuit goes to every patient o
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