Help needed in query update problem !!

Revision en1, by anurag_orz, 2022-08-16 20:25:41

Given an array A of length N, perform Q queries of 2 types in it
Query 1 — L R given, flip signs of array elements (positive to negetive and vice versa) from L to R
Query 2 — L R given, print index of first negetive element in L to R
Constraints —
N,Q <=2 * 10 ^ 5
-1e8 <= A[i] <= 1e8
Sorry for poor English

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English anurag_orz 2022-08-16 20:25:41 406 Initial revision (published)