i am getting error in hotel visit problem , please check
Hotel visit problem giving error
first of all , stop inserting pair in the queue, just insert distances only because it will take enough time for comparator class to work
pop from queue whenever the elements in queue is greater than k