In my solution of DQUERY .
when I wrote this compare function , I got tle.
int comp(query a, query b){
if( a.l/BLOCK < b.l/BLOCK )
return a.l/BLOCK < b.l/BLOCK ;
return a.r < b.r;
}
But when I changed condition to if( a.l/BLOCK != b.l/BLOCK ) it got accepted.
I want to know why ?