• + 1 comment

    In query of type 2, should we swap all elements of id'th array from l1 to r1 with elements from l2 to r2? Is r1-l1 == r2-l2 then?