Prince of Mirzapur
CodeChefOpen on judge ↗
Kaleen Bhaiya wants Munna to prove that he is capable enough to rule Mirzapur so he gave him a problem to solve but Munna is busy in college elections so he want you to help him and in return he will give you 50 eggs in college canteen. The problem is as follows: Given an array of size $N$ containing only 0 and 1 as elements. You are given $Q$ queries. Each query is of one of the two types. - $
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