Sir i applied 2 approaches in this question hostel visit.
First one I used priority queues but in one of the test cases it is giving TLE.
Second approach I used is policy based data struture and in it also one of the test cases is giving wrong ans.
Can you please suggest me what is wrong in my code for both approaches.