Yet Another Update Query Problem

Given an array of n elements, you have to do Q operations. The operations can be of the following tw…

Click here to read the complete problem statement.


If you need help solving this problem, mention your approach and ask specific questions. Please avoid sharing your code and asking the Community to figure out “what’s wrong”.