Salary Queries — My solutionI am still stuck at Salary Queries. Although acc to me I have followed your approach to the answer only, but I am getting TLE on CSES with some test cases getting accepted. I have tried to debug my code but I still feel it should have a T.C. less than 1e8. Can anybody help? (I have used map as well but tle)








Auto comment: topic has been updated by this_ability (previous revision, new revision, compare).
maybe the query should be
if (l <= tl && r >= tr) { return t[v]; }