Test 2 Failed eXISToR not

Kam

failed on test. 2, giving timelimit a

Sumit, plz use for loop instead of while in line no 23,
for(int i=0;i<q;i++)

can you please justify?
i read everywhere, that both are same.


Try to submit now