Here is my solution:
Getting wrong ans in the hotel visit problem
Hey @tasfikrahman007
2 changes :
- Make ull long long because x and y can be negative
#define ull long long
- Declare priority queue of ull instead of int
priority_queue max_heap;
If this resolves your query then please mark it as resolved 