please see the code I ahve implemented and mark where correction is needed.
link for code : https://ide.codingblocks.com/s/211693
One of the test case has TLE verdict
@Debugger
Line 91 to 95 is troublesome
It is leading to TLE
Instead of just pushing new hotel to heap end
Heapify at the time you add
That way you can just print top K each time