While writing code for queries, Prateek Bhaiya writes
if(ss >= qs and se <= qe) for complete overlap.
But, for complete overlap, shouldn’t it be
if(ss >= qs and se >= qe)
Because the query start and end should be a subset of segment start and end.