https://www.codechef.com/problems/QSET ,i have done using the preactise notes pliz check
Hi @sgdon142
From an overlook, it looks like your update function has some problem. I am not being able to understand what are you doing in it. Try to re-read the update statement int the question and write the code again as it becomes impossible to debug such a long code.