Same solution is working fine for c++ but run error in python.
I think there is problem with coding blocks.
Can you tell why it is happening?
Exist OR Not EOF error for testcase 2 and 3
Hi @mddanish
Error is with nq = int(input().strip()) statement. It will give you value error when there will be negative elements in the input.
no it taking -ve without error