Segment Tree Question TLE on CSES

Revision en2, by this_ability, 2025-08-11 15:40:49

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)

Tags segment tree, time limit exceeded, help me, cses

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English this_ability 2025-08-11 15:40:49 2526
en1 English this_ability 2025-08-11 15:38:50 2645 Initial revision (published)