I have used heap in this question. still I am getting TLE. I am not understanding where is my mistake.
Here is my code : https://ide.codingblocks.com/s/126433
TLE on Hotel Visit
ide is not working right now , So i was not able to see your code . I have implemented the code using max heap , you can check where you are doing wrong.