Get best answers to any doubt/query/question related to programming , jobs, gate, internships and tech-companies. Feel free to ask a question and you will receive the best advice/suggestion related to anything you ask about software-engineering , development and programming problems .

0 like 0 dislike
936 views
in Online Assessments by Expert (32,020 points)

1 Answer

0 like 0 dislike

image
image
image
image

 

Constraints::
1<=T<=10 (T-> Number of Test cases)
1<=N<=10^5
1<=L[i],R[i]<=10^5
1<=M<=10^5
0<=M[i]<=10^5

 

P.S: According to given constraints expecting solution O(nlogn) or O(n).

by Expert (32,020 points)
...